From be733d666c0c343ac5b2c3bc238f80bea911c0ad Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Sun, 21 May 2023 17:42:46 +0530 Subject: [PATCH] Update publish file permission --- smart_service/apis/publish_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/smart_service/apis/publish_api.py b/smart_service/apis/publish_api.py index 1d42077..bb12f29 100644 --- a/smart_service/apis/publish_api.py +++ b/smart_service/apis/publish_api.py @@ -651,6 +651,7 @@ 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}';''')