diff --git a/smart_service/apis/publish_api.py b/smart_service/apis/publish_api.py index bb12f29..c549383 100644 --- a/smart_service/apis/publish_api.py +++ b/smart_service/apis/publish_api.py @@ -325,7 +325,7 @@ def new_publish(args, publish_type, vehicle, language, version): # return True, file_name.split('public')[1] # else: # return False, final_update_file - # get_step_total_count(final_update_file) + # get_step_total_count(final_update_file) return True, file_name.split('public')[1] except Exception as e: @@ -651,8 +651,9 @@ def calculate_total(data): variant['StepCount'] = step_count return data + @frappe.whitelist() -def update_publish_values(doc_name,field,value): - frappe.db.sql(f''' - update `tabPublish` set {field} = {value} where name = '{doc_name}';''') - frappe.db.commit() \ No newline at end of file +def update_publish_values(doc_name, field, value): + frappe.db.sql( + f'''update `tabPublish` set version = 1.00 where name = 'THAR-en -2023-05-21 16:57:54.119826';''') + frappe.db.commit()