From 989205a2c88849d91ee968d1df3a2410e39e9003 Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Tue, 18 Apr 2023 12:57:10 +0530 Subject: [PATCH] File ext file path validation --- smart_service/apis/master_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smart_service/apis/master_api.py b/smart_service/apis/master_api.py index 3d592fe..6bc3a62 100644 --- a/smart_service/apis/master_api.py +++ b/smart_service/apis/master_api.py @@ -436,9 +436,9 @@ def change_file_dir(): frappe.log_error("New path:", str(new_full_path)) if os.path.exists(os.path.join(base_url,new_full_path)): - frappe.log_error("final", str('ext changed File exists in local:'+ str(os.path.join(base_url,new_full_path))) + frappe.log_error("final", str('ext changed File exists in local:'+ str(os.path.join(base_url,new_full_path)))) else: - frappe.log_error("final", str('File Not exists' + str(os.path.join(base_url,new_full_path))) + frappe.log_error("final", str('File Not exists' + str(os.path.join(base_url,new_full_path)))) # frappe.db.sql(f''' # update tabProcedure_Details set file = '{new_full_path}' where content_type = 'File' and name = '{d['name']}'; # ''')