Browse Source

New procedure idx missing fix

master
venkataakhil 2 years ago
parent
commit
0698e9f4d5
  1. 4
      smart_service/apis/publish_api.py

4
smart_service/apis/publish_api.py

@ -208,9 +208,9 @@ def json_grouping(args, language):
# current_db_name, k['procedure_link']), as_dict=True)
proc_details = frappe.db.sql('''select procedure_name, step_name, content_type, content,
file,idx as display_order from {}.tabProcedure_Details
file,idx as display_order,idx from {}.tabProcedure_Details
where parent ='{}' order by idx asc; '''.format(current_db_name, k['procedure_link']), as_dict=True)
proc_data = get_parent_map(
proc_details, 'procedure_name')
total_count += len(proc_data)

Loading…
Cancel
Save