From 77e1a26a1a4fb2e14fe6f95535f7cbc4f974f67b Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Tue, 16 May 2023 14:56:22 +0530 Subject: [PATCH] db name added --- smart_service/transactions/doctype/publish/publish.py | 1 + 1 file changed, 1 insertion(+) diff --git a/smart_service/transactions/doctype/publish/publish.py b/smart_service/transactions/doctype/publish/publish.py index 748c6ac..04edc60 100644 --- a/smart_service/transactions/doctype/publish/publish.py +++ b/smart_service/transactions/doctype/publish/publish.py @@ -66,6 +66,7 @@ class Publish(Document): # Update system and variant mapping ststus if self.publish_status == "Published" and self.publish_type == "Global": + current_db_name = frappe.conf.get("db_name") global_publish = frappe.db.sql("""select name from {0}.`tabPublish` where global_publish = '{1}'""".format( current_db_name, self.name), as_dict=True) for global_name in global_publish: