diff --git a/smart_service/apis/publish_api.py b/smart_service/apis/publish_api.py index b95337d..f7d5b80 100644 --- a/smart_service/apis/publish_api.py +++ b/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: