[fix] email_alert.py

This commit is contained in:
Rushabh Mehta 2016-05-04 16:05:38 +05:30
parent 478078615f
commit ca07fc8376

View file

@ -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),