Browse Source

Generate publish files for older versions

master
venkataakhil 1 year ago
parent
commit
d6bb236326
  1. 12
      smart_service/apis/publish_api.py

12
smart_service/apis/publish_api.py

@ -497,9 +497,9 @@ def new_publish(args, publish_type, vehicle, language, version):
"%s-%s-full_v%s.json" % (vehicle, "%s-%s-full_v%s.json" % (vehicle,
language, prev_update_ver) language, prev_update_ver)
frappe.log_error('old_json_path', str(prev_full_update_file)) # frappe.log_error('old_json_path', str(prev_full_update_file))
frappe.log_error('new_json_path', str(file_name)) # frappe.log_error('new_json_path', str(file_name))
frappe.log_error('out_file_path', str(full_update_file_name)) # frappe.log_error('out_file_path', str(full_update_file_name))
file_flag, final_update_file = merge_json_files( file_flag, final_update_file = merge_json_files(
prev_full_update_file, file_name, full_update_file_name) prev_full_update_file, file_name, full_update_file_name)
@ -574,9 +574,9 @@ def new_publish(args, publish_type, vehicle, language, version):
prev_full_update_file = full_update_path_internal + vehicle + "/" + \ prev_full_update_file = full_update_path_internal + vehicle + "/" + \
"%s-%s-full_v%s.json" % (vehicle, "%s-%s-full_v%s.json" % (vehicle,
language, prev_update_ver) language, prev_update_ver)
frappe.log_error('old_json_path', str(prev_full_update_file)) # frappe.log_error('old_json_path', str(prev_full_update_file))
frappe.log_error('new_json_path', str(file_name)) # frappe.log_error('new_json_path', str(file_name))
frappe.log_error('out_file_path', str(full_update_file_name)) # frappe.log_error('out_file_path', str(full_update_file_name))
file_flag, final_update_file = merge_json_files( file_flag, final_update_file = merge_json_files(
prev_full_update_file, file_name, full_update_file_name) prev_full_update_file, file_name, full_update_file_name)

Loading…
Cancel
Save