updated recipients email in communication

This commit is contained in:
Rushabh Mehta
2012-12-12 16:13:29 +05:30
parent d1b2afcd18
commit 9e12af4b7c
5 changed files with 5 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ def get_things_todo():
incomplete_todos = webnotes.conn.sql("""\
SELECT COUNT(*) FROM `tabToDo`
WHERE IFNULL(checked, 0) = 0
AND owner = %s""", webnotes.session.get('user'))
AND (owner = %s or assigned_by=%s)""", (webnotes.session.user, webnotes.session.user))
return incomplete_todos and cint(incomplete_todos[0][0]) or 0
def get_todays_events():