fix company email digest patch
This commit is contained in:
parent
edc58619d1
commit
fe6409debf
@ -13,11 +13,9 @@ def execute():
|
|||||||
return
|
return
|
||||||
|
|
||||||
# no default company
|
# no default company
|
||||||
company = webnotes.conn.get_default("company")
|
company = webnotes.conn.sql_list("select name from `tabCompany`")
|
||||||
if not company:
|
if company:
|
||||||
company = webnotes.conn.sql_list("select name from `tabCompany`")
|
company = company[0]
|
||||||
if company:
|
|
||||||
company = company[0]
|
|
||||||
if not company:
|
if not company:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -31,4 +29,4 @@ def execute():
|
|||||||
"recipient_list": "\n".join(system_managers),
|
"recipient_list": "\n".join(system_managers),
|
||||||
"scheduler_errors": 1
|
"scheduler_errors": 1
|
||||||
})
|
})
|
||||||
edigest.insert()
|
edigest.insert()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user