fix: return when Hub Tracked Item is empty
This commit is contained in:
parent
cca6fb2794
commit
c7ce597b7f
@ -3,10 +3,10 @@ import frappe
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc("Hub Node", "doctype", "Hub Tracked Item")
|
frappe.reload_doc("Hub Node", "doctype", "Hub Tracked Item")
|
||||||
if frappe.db.a_row_exists("Hub Tracked Item"):
|
if not frappe.db.a_row_exists("Hub Tracked Item"):
|
||||||
return
|
return
|
||||||
|
|
||||||
frappe.db.sql('''
|
frappe.db.sql('''
|
||||||
Update `tabHub Tracked Item`
|
Update `tabHub Tracked Item`
|
||||||
SET published = 1
|
SET published = 1
|
||||||
''')
|
''')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user