|
@@ -7,7 +7,7 @@ def execute(): |
|
|
default_email_account = get_default_outgoing_email_account() |
|
|
default_email_account = get_default_outgoing_email_account() |
|
|
|
|
|
|
|
|
if frappe.conf.get("google_analytics_id") == "UA-8911157-19" or \ |
|
|
if frappe.conf.get("google_analytics_id") == "UA-8911157-19" or \ |
|
|
default_email_account.email_id == "notifications@erpnext.com": |
|
|
|
|
|
|
|
|
(default_email_account and default_email_account.email_id == "notifications@erpnext.com"): |
|
|
|
|
|
|
|
|
frappe.db.sql("""update `tabEmail Queue` set status='Not Sent' where |
|
|
frappe.db.sql("""update `tabEmail Queue` set status='Not Sent' where |
|
|
creation>=DATE_SUB(NOW(), INTERVAL 16 HOUR)""") |
|
|
creation>=DATE_SUB(NOW(), INTERVAL 16 HOUR)""") |