Browse Source

Publish testing

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

4
smart_service/apis/publish_api.py

@ -308,7 +308,7 @@ def new_publish(args, publish_type, vehicle, language, version):
'%s-%s-full_update.json' % (vehicle, language)
""" Since full update is not available for Global version 1 """
if version == '1.00':
if str(version) == '1.00':
with open(full_update_file_name, 'w') as outfile:
outfile.write(json.dumps(json_file))
with open(new_full_update_file_name, 'w') as outfile:
@ -880,4 +880,4 @@ def upv():
@frappe.whitelist()
def run_publish():
new_publish('THAR-en -2023-05-21 16:57:54.119826',
'global', 'THAR', 'en', 1.00)
'global', 'THAR', 'en', '1.00')

Loading…
Cancel
Save