remove local db

This commit is contained in:
Lei PAN
2022-07-08 09:04:45 +02:00
parent 4662bed9b8
commit fe56c47d50
18 changed files with 57 additions and 111 deletions
+2 -1
View File
@@ -1,13 +1,14 @@
import time
from src import params, definitions
from src.db.mongo_manager import MONGO_STORE_MANAGER
from src.pojo.contact_pojo import ContactPojo
SEVEN_DAYS_IN_S = 7 * 24 * 3600
def can_send_request(contact: ContactPojo) -> bool:
black_list = definitions.mongo_store_manager.get_blacklist_contacts()
black_list = MONGO_STORE_MANAGER.get_blacklist_contacts()
for black_contact in black_list:
if contact.mail == black_contact.mail:
# check date
+1 -1
View File
@@ -5,7 +5,7 @@ import string
import pandas as pandas
import xlsxwriter
from src.definitions import CONTACT_LIST_FILE
from src.config import CONTACT_LIST_FILE
from src.pojo.contact_pojo import ContactPojo
from src.utils.generate_random_passport_id import get_random_passport_id_number