From a7a0742b26a68cdd2c4a9faa1cb273496b869c1e Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Wed, 21 Jun 2023 19:52:44 +0530 Subject: [PATCH] Procedure status update --- smart_service/apis/support.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/smart_service/apis/support.py b/smart_service/apis/support.py index fcaced2..dd2ae7b 100644 --- a/smart_service/apis/support.py +++ b/smart_service/apis/support.py @@ -400,6 +400,10 @@ def procedure_do(variant,language,system): @frappe.whitelist() def set_procedure_false(): - frappe.db.sql('''update `tabSystem Mapping_Sub System` set procedure_is_published=0; - ''') - frappe.db.commit() \ No newline at end of file + try: + frappe.db.sql('''update `tabSystem Mapping_Sub System` set procedure_is_published=0; + ''') + frappe.db.commit() + return 1 + except Exception as e: + return e \ No newline at end of file