Browse Source

Kilometer append issue

master
venkataakhil 1 year ago
parent
commit
bb40a0167a
  1. 6
      smart_service/apis/publish_api.py

6
smart_service/apis/publish_api.py

@ -413,7 +413,9 @@ def merge_json_files(old_json_path, new_json_path, out_file_path):
old_ck['kilometer_name'])
if old_ck['kilometer_name'] not in conf_km_added and \
old_ck['kilometer_name'] in conf_km_name:
sub_system_list.append(
# sub_system_list.append(
# old_ck)
conf_km_list.append(
old_ck)
conf_km_added.add(
old_ck['kilometer_name'])
@ -545,7 +547,7 @@ def merge_json_files(old_json_path, new_json_path, out_file_path):
})
with open(out_file_path, "w") as outfile:
outfile.write(json.dumps(data_consolidated,indent =4))
outfile.write(json.dumps(data_consolidated, indent=4))
return True, out_file_path
except Exception as e:

Loading…
Cancel
Save