add method to extract all validated contacts of the day

This commit is contained in:
2024-02-01 22:44:27 +01:00
parent 8db045d9ac
commit 95446596c8
+3 -1
View File
@@ -7,7 +7,7 @@ from src.utils.excel_reader import read_contacts
def upload_contacts_list():
_contacts_to_book = read_contacts("/Users/lpan/Desktop/08_01_24_valid_de.xlsx")
_contacts_to_book = read_contacts("/Users/lpan/Desktop/contacts_valid_2.xlsx")
return _contacts_to_book
@@ -44,6 +44,8 @@ def generate_valid_contact_list_for_day():
for _true_contact in _all_contacts:
if _true_contact.mail == _contact.email:
_contact.lastName = _true_contact.last_name
_contact.phone = _true_contact.phone
_contact.passport = _true_contact.passport
_contact.firstName = _true_contact.first_name
if _contact.url_validated: