send email when rdv confirmed

This commit is contained in:
2022-08-19 19:35:27 +02:00
parent fd1af1778c
commit b1d94ac92d
3 changed files with 22 additions and 22 deletions
+5 -3
View File
@@ -188,6 +188,7 @@ def write_destinaire_email(valid_contacts: list, generate_passport=True):
row += 1
workbook.close()
def save_mails_to_db():
excel_reader = ExcelHelper()
emails = excel_reader.read_email_pojo("/Users/lpan/Downloads/aol_mails_21.xlsx")
@@ -195,14 +196,15 @@ def save_mails_to_db():
for mail in emails:
MONGO_STORE_MANAGER.save_destinary_emails(mail)
if __name__ == '__main__':
# excel_reader = ExcelHelper()
# contacts = excel_reader.read_names("/Users/lpan/Documents/rdv/real_contacts_318.xlsx")
# contacts = excel_reader.read_names("/Users/lpan/Documents/rdv/backup_500.xlsx")
# print(contacts)
# write_new_contacts_to_excel(valid_contacts=contacts)
save_mails_to_db()
# for mail in excel_reader.read_mails_and_pwd():
# MONGO_STORE_MANAGER.insert_email(mail)
# for i in range(1,2):
# print(get_random_phone_numbers())
# for i in range(1, 64):
# print(get_random_phone_numbers())