remove local db
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user