Browse Source

File append issue fix

master
venkataakhil 1 year ago
parent
commit
94b2bf64b1
  1. 2
      smart_service/apis/publish_api.py

2
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) json_object = json.dumps(data_old, indent=4)
with open(out_file_path, "w") as outfile: with open(out_file_path, "w") as outfile:
outfile.write(json_object) outfile.write(json_object)
return True, out_file_path
except Exception as es: except Exception as es:
frappe.log_error("Merge JSON:",frappe.get_traceback()) frappe.log_error("Merge JSON:",frappe.get_traceback())

Loading…
Cancel
Save