Browse Source

Update publish file permission

master
venkataakhil 2 years ago
parent
commit
25863ce56b
  1. 5
      smart_service/apis/publish_api.py

5
smart_service/apis/publish_api.py

@ -651,8 +651,9 @@ def calculate_total(data):
variant['StepCount'] = step_count
return data
@frappe.whitelist()
def update_publish_values(doc_name, field, value):
frappe.db.sql(f'''
update `tabPublish` set {field} = {value} where name = '{doc_name}';''')
frappe.db.sql(
f'''update `tabPublish` set version = 1.00 where name = 'THAR-en -2023-05-21 16:57:54.119826';''')
frappe.db.commit()
Loading…
Cancel
Save