From 94b2bf64b1b5b7ea3f33183e42780df625b1a788 Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Wed, 21 Jun 2023 21:00:14 +0530 Subject: [PATCH] File append issue fix --- smart_service/apis/publish_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_service/apis/publish_api.py b/smart_service/apis/publish_api.py index edeb5d4..ccb9522 100644 --- a/smart_service/apis/publish_api.py +++ b/smart_service/apis/publish_api.py @@ -764,7 +764,7 @@ def merge_json_files(old_json_path, new_json_path, out_file_path): json_object = json.dumps(data_old, indent=4) with open(out_file_path, "w") as outfile: outfile.write(json_object) - + return True, out_file_path except Exception as es: frappe.log_error("Merge JSON:",frappe.get_traceback())