can insert accepted appointment to db
This commit is contained in:
@@ -4,6 +4,7 @@ import time
|
||||
|
||||
from pymongo import MongoClient
|
||||
|
||||
from models.AcceptedResultPojo import AcceptedResultPojo
|
||||
from models.LinkPojo import LinkPojo
|
||||
from models.ReserveResultPojo import ReserveResultPojo
|
||||
from models.contact_pojo import ContactPojo
|
||||
@@ -132,6 +133,13 @@ class MongoDbManager:
|
||||
print(error)
|
||||
return email_list
|
||||
|
||||
def insert_accepted_reserve(self, accepted_pojo: AcceptedResultPojo):
|
||||
try:
|
||||
collection_to_use = self.db[ACCEPTED_APPOINTMENT_LIST]
|
||||
collection_to_use.insert_one(accepted_pojo.to_firestore_dict())
|
||||
except Exception as Error:
|
||||
self.logger.info(Error)
|
||||
|
||||
def get_links_to_validate(self) -> list:
|
||||
collection_name = LINKS_TO_VALIDATE
|
||||
link_list = []
|
||||
|
||||
Reference in New Issue
Block a user