Skip to content

Commit 91dbce3

Browse files
authored
Change firestore_safe_id to an instance method
1 parent 08cdf75 commit 91dbce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/eew/sceewlog/eews2fcm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def save_info(self, ep, updateIndex):
393393
seiscomp.logging.error(f"Error saving event info to Firestore: {e}")
394394

395395

396-
def firestore_safe_id(doc_id):
396+
def firestore_safe_id(self, doc_id):
397397
doc_id = doc_id.strip()
398398
doc_id = doc_id.rsplit("/", 1)[-1] # remove path
399399
doc_id = re.sub(r'[\x00-\x1F]', '', doc_id) # remove control chars

0 commit comments

Comments
 (0)