Merge branch 'master' of bitbucket.org:panleicim/appointment_tool
This commit is contained in:
@@ -78,7 +78,9 @@ class MongoDbManager:
|
||||
try:
|
||||
collection_to_use = self.db[CONTACT_LIST_TO_BOOK]
|
||||
for contact in contact_list:
|
||||
collection_to_use.insert_one(contact.to_firestore_dict())
|
||||
# collection_to_use.insert_one(contact.to_firestore_dict())
|
||||
collection_to_use.replace_one(filter={'_id': contact.mail, }, replacement=contact.to_firestore_dict(),
|
||||
upsert=True)
|
||||
except Exception as Error:
|
||||
self.logger.info(Error)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user