Browse Source

get vm

master
venkataakhil 1 year ago
parent
commit
009e77e586
  1. 2
      smart_service/transactions/doctype/publish/publish.py

2
smart_service/transactions/doctype/publish/publish.py

@ -280,7 +280,7 @@ def update_mapping(variant_mapping, doc):
def get_vm_asset(doc,lang): def get_vm_asset(doc,lang):
doc = frappe.get_doc("Variant Mapping", doc) doc = frappe.get_doc("Variant Mapping", doc)
vm_assets = frappe.db.sql("""select category,language,attach_file,active_status from {0}.`tabVariant Mapping_Assets` vm_assets = frappe.db.sql("""select category,language,attach_file,active_status from {0}.`tabVariant Mapping_Assets`
where parent = "{1}" and language '{2}' and published = '0'; """.format(current_db_name, doc.name,lang), as_dict=1) where parent = "{1}" and language = "{2}" and published = '0'; """.format(current_db_name, doc.name,lang), as_dict=1)
return vm_assets return vm_assets

Loading…
Cancel
Save