cookies directly from tag.js not work
This commit is contained in:
@@ -3,6 +3,7 @@ import logging
|
||||
|
||||
from pymongo import MongoClient
|
||||
|
||||
from models.LinkPojo import LinkPojo
|
||||
from models.ReserveResultPojo import ReserveResultPojo
|
||||
from models.contact_pojo import ContactPojo
|
||||
|
||||
@@ -70,5 +71,16 @@ class MongoDbManager:
|
||||
result_list.append(ContactPojo.from_firestore_dict(document))
|
||||
return result_list
|
||||
|
||||
def get_links_to_validate(self) -> list:
|
||||
collection_name = LINKS_TO_VALIDATE
|
||||
link_list = []
|
||||
try:
|
||||
collection_to_use = self.db[collection_name]
|
||||
for document in collection_to_use.find():
|
||||
link_list.append(LinkPojo.from_firestore_dict(document))
|
||||
except Exception as error:
|
||||
self.logger.info(error)
|
||||
return link_list
|
||||
|
||||
|
||||
MONGO_STORE_MANAGER = MongoDbManager()
|
||||
|
||||
Reference in New Issue
Block a user