send email to all

This commit is contained in:
2022-11-02 20:19:54 +01:00
parent 0b389e43d3
commit cea9783c07
+1 -1
View File
@@ -120,7 +120,7 @@ def clean(text):
def accept_appointment_found(accepted_result_list: list): def accept_appointment_found(accepted_result_list: list):
mailer = Mailer() mailer = Mailer()
for reserve in accepted_result_list: for reserve in accepted_result_list:
mailer.send_email(get_accepted_result_from(reserve), to_all=False) mailer.send_email(get_accepted_result_from(reserve), to_all=True)
MONGO_STORE_MANAGER.update_reserve_result(reserve.id, ResultEnum.ACCEPTED) MONGO_STORE_MANAGER.update_reserve_result(reserve.id, ResultEnum.ACCEPTED)
if len(accepted_result_list) > 0: if len(accepted_result_list) > 0: