[email digest] [fix] [hot] only open to-do items

This commit is contained in:
Rushabh Mehta 2014-07-23 10:19:31 +05:30
parent 9df4196597
commit 3c78ab5841

View File

@ -312,7 +312,7 @@ class EmailDigest(Document):
def get_todo_list(self, user_id):
todo_list = frappe.db.sql("""select *
from `tabToDo` where (owner=%s or assigned_by=%s)
from `tabToDo` where (owner=%s or assigned_by=%s) and status="Open"
order by field(priority, 'High', 'Medium', 'Low') asc, date asc""",
(user_id, user_id), as_dict=True)