get email password and send by email

This commit is contained in:
2023-02-20 20:46:38 +01:00
parent 58f560b7bc
commit f2914f7ddf
4 changed files with 28 additions and 9 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ def accept_appointment_found(accepted_result_list: list):
mailer = Mailer()
print(accepted_result_list)
for reserve in accepted_result_list:
mailer.send_email(get_accepted_result_from(reserve), to_all=True)
mailer.send_email(get_accepted_result_from(reserve, MONGO_STORE_MANAGER), to_all=True)
MONGO_STORE_MANAGER.update_reserve_result(reserve.id, ResultEnum.ACCEPTED, reserve.message)
if len(accepted_result_list) > 0: