|
|
@ -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) |
|
|
|