cookies directly from tag.js not work

This commit is contained in:
2024-01-15 11:21:53 +01:00
parent f43d496ecc
commit d1ffd28b6a
9 changed files with 430 additions and 101 deletions
+12
View File
@@ -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()