correction on the scan confirmation emails.
This commit is contained in:
@@ -136,6 +136,10 @@ def read_mails_and_find_confirmation_contacts():
|
||||
accepted_appointment_list = []
|
||||
if len(mails_messages) > 0:
|
||||
successful_items = MONGO_STORE_MANAGER.get_all_successful_items_for_day()
|
||||
# check the hours
|
||||
current_hour = datetime.datetime.now().hour
|
||||
if current_hour < 19:
|
||||
# add yesterday's appointment only for morning
|
||||
successful_items.extend(MONGO_STORE_MANAGER.get_all_successful_items_for_yesterday())
|
||||
for mail in mails_messages:
|
||||
message_body = mail.body
|
||||
|
||||
Reference in New Issue
Block a user