[fix] email_alert.py
This commit is contained in:
parent
478078615f
commit
ca07fc8376
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ def trigger_email_alerts(doc, method=None):
|
|||
diff_days = -diff_days
|
||||
|
||||
for name in frappe.db.sql_list("""select name from `tab{0}` where
|
||||
DATE({1}) = ADDDATE(DATE(%s), INTERVAL %s DAY)""".format(alert.document_type, alert.date_changed),
|
||||
DATE(`{1}`) = ADDDATE(DATE(%s), INTERVAL %s DAY)""".format(alert.document_type, alert.date_changed),
|
||||
(nowdate(), diff_days or 0)):
|
||||
|
||||
evaluate_alert(frappe.get_doc(alert.document_type, name),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue