fix company email digest patch

This commit is contained in:
Pratik Vyas 2013-12-19 11:41:10 +05:30
parent edc58619d1
commit fe6409debf

View File

@ -13,11 +13,9 @@ def execute():
return
# no default company
company = webnotes.conn.get_default("company")
if not company:
company = webnotes.conn.sql_list("select name from `tabCompany`")
if company:
company = company[0]
company = webnotes.conn.sql_list("select name from `tabCompany`")
if company:
company = company[0]
if not company:
return
@ -31,4 +29,4 @@ def execute():
"recipient_list": "\n".join(system_managers),
"scheduler_errors": 1
})
edigest.insert()
edigest.insert()