Browse Source

Clear table support file

master
venkataakhil 1 year ago
parent
commit
92241873bd
  1. 2
      smart_service/apis/support.py

2
smart_service/apis/support.py

@ -469,7 +469,7 @@ def remove_html_tags():
@frappe.whitelist()
def clear_tables(table_name):
try:
frappe.db.sql(f'''delete FROM `{table_name}`;''')
frappe.db.sql(f'''delete FROM `tab{table_name}`;''')
return 1
except Exception as e:
return e
Loading…
Cancel
Save