Browse Source

Update table values

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

11
smart_service/apis/publish_api.py

@ -321,8 +321,10 @@ def new_publish(args, publish_type, vehicle, language, version):
file_flag, final_update_file = merge_json_files(
prev_full_update_file, file_name, full_update_file_name)
if file_flag:
return True, file_name.split('public')[1]
# if file_flag:
# return True, file_name.split('public')[1]
# else:
# return False, final_update_file
# get_step_total_count(final_update_file)
return True, file_name.split('public')[1]
@ -648,3 +650,8 @@ def calculate_total(data):
variant['TotalCount'] = total_count
variant['StepCount'] = step_count
return data
def update_publish_values(doc_name,field,value):
frappe.db.sql(f'''
update `tabPublish` set {field} = {value} where name = '{doc_name}';''')
frappe.db.commit()
Loading…
Cancel
Save