diff --git a/frappe/email/doctype/email_alert/email_alert.py b/frappe/email/doctype/email_alert/email_alert.py index e0a777538f..4b4065791f 100644 --- a/frappe/email/doctype/email_alert/email_alert.py +++ b/frappe/email/doctype/email_alert/email_alert.py @@ -27,7 +27,7 @@ def trigger_email_alerts(doc, method=None): # don't send email alerts while syncing or patching return - if method = "daily": + if method == "daily": for alert in frappe.db.sql_list("""select name from `tabEmail Alert` where event in ('Days Before', 'Days After') and enabled=1"""):