From 0adff0146d3ec254c9580332c329e0607be2f170 Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Mon, 26 Jun 2023 18:31:20 +0530 Subject: [PATCH] mp4 file name changed --- .../transactions/doctype/system_mapping/system_mapping.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/smart_service/transactions/doctype/system_mapping/system_mapping.py b/smart_service/transactions/doctype/system_mapping/system_mapping.py index 4f6e60f..9b1477e 100644 --- a/smart_service/transactions/doctype/system_mapping/system_mapping.py +++ b/smart_service/transactions/doctype/system_mapping/system_mapping.py @@ -38,6 +38,14 @@ class SystemMapping(Document): # 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' + if self.system_sub_systems: for x in self.get("system_sub_systems"): if x.procedure: