adapt time on server
This commit is contained in:
@@ -119,8 +119,6 @@ def need_to_valid_url(url: str, successful_items) -> bool:
|
||||
id = parts[5]
|
||||
if len(id) == 6:
|
||||
for item in successful_items:
|
||||
# if item.url_validated is not None:
|
||||
# print("id:{}, status:{} ".format(id, str(item.url_validated)))
|
||||
if item.id == id:
|
||||
if item.url_validated is not None:
|
||||
return not item.url_validated
|
||||
@@ -154,7 +152,7 @@ def need_to_check_email(mail: str, successful_items) -> bool:
|
||||
|
||||
def read_mails():
|
||||
# check time before start checking emails
|
||||
if is_time_between(time(9, 30), time(19, 30)):
|
||||
if is_time_between(time(7, 30), time(19, 30)):
|
||||
# get email address
|
||||
mail_list = MONGO_STORE_MANAGER.get_destination_emails()
|
||||
# mail_address1 = MailAddress(mail="appointment2022@aol.com", password="gyilpmvyyvlcaviq")
|
||||
|
||||
Reference in New Issue
Block a user