diff --git a/smart_service/apis/support.py b/smart_service/apis/support.py index d697841..07bed0a 100644 --- a/smart_service/apis/support.py +++ b/smart_service/apis/support.py @@ -466,14 +466,3 @@ def remove_html_tags(): return True, 'Done' except Exception as e: return False,e - - - -@frappe.whitelist() -def query_update(): - frappe.db.sql(""" - update `tabSystem Mapping_Sub System` set procedure_is_published = "0" where parent = "THAR.AX-0001-hi-SM" - """) - frappe.db.sql(""" - update `tabSystem Mapping_System Assets`set published = "0" where parent = "THAR.AX-0001-hi-SM" - """) \ No newline at end of file diff --git a/smart_service/transactions/doctype/system_mapping/system_mapping.py b/smart_service/transactions/doctype/system_mapping/system_mapping.py index 9b1477e..50ab0e0 100644 --- a/smart_service/transactions/doctype/system_mapping/system_mapping.py +++ b/smart_service/transactions/doctype/system_mapping/system_mapping.py @@ -37,15 +37,7 @@ class SystemMapping(Document): frappe.db.commit() # self.km_active_status = status.active_status - def validate(self): - if self.systems_assets: - for x in self.get("systems_assets"): - if x.system_asset: - a = x.system_asset - b = a.split(".") - if str(b[1] == "MP4"): - x.system_asset = str(b[0]) + '.mp4' - + def validate(self): if self.system_sub_systems: for x in self.get("system_sub_systems"): if x.procedure: