Browse Source

Clear publish data function

master
venkataakhil 1 year ago
parent
commit
1899854224
  1. 4
      smart_service/apis/support.py

4
smart_service/apis/support.py

@ -415,6 +415,10 @@ def clear_procedures():
set_procedure_false() set_procedure_false()
frappe.db.sql('''delete FROM `tabPublish`;''') frappe.db.sql('''delete FROM `tabPublish`;''')
frappe.db.sql('''delete FROM `tabPublish_Docs`;''') frappe.db.sql('''delete FROM `tabPublish_Docs`;''')
frappe.db.sql('''update `tabVariant Mapping_Assets` set published=0;''')
frappe.db.sql('''update `tabSystem Mapping_Sub System` set procedure_is_published=0;''')
frappe.db.sql('''update `tabSystem Mapping_System Assets` set published=0;''')
frappe.db.commit() frappe.db.commit()
except Exception as e: except Exception as e:
return e return e

Loading…
Cancel
Save