Browse Source

Update publish file permission

master
venkataakhil 2 years ago
parent
commit
be733d666c
  1. 1
      smart_service/apis/publish_api.py

1
smart_service/apis/publish_api.py

@ -651,6 +651,7 @@ def calculate_total(data):
variant['StepCount'] = step_count variant['StepCount'] = step_count
return data return data
@frappe.whitelist()
def update_publish_values(doc_name,field,value): def update_publish_values(doc_name,field,value):
frappe.db.sql(f''' frappe.db.sql(f'''
update `tabPublish` set {field} = {value} where name = '{doc_name}';''') update `tabPublish` set {field} = {value} where name = '{doc_name}';''')

Loading…
Cancel
Save