|
|
@ -176,7 +176,7 @@ def new_publish(): |
|
|
|
# flag, data = get_training_information(vehicle, language) |
|
|
|
pass |
|
|
|
|
|
|
|
elif module == 'Special Tool Information': |
|
|
|
elif module == 'Mahindra Special Tool Information': |
|
|
|
flag, data = get_special_tool_information(vehicle) |
|
|
|
|
|
|
|
elif module == 'PDI Inspection': |
|
|
@ -240,6 +240,7 @@ def new_publish1(): |
|
|
|
data = data['data'] |
|
|
|
filter_json = filter_publish_json(data,variant) |
|
|
|
data = filter_json |
|
|
|
|
|
|
|
elif module == 'Training Information': |
|
|
|
pass |
|
|
|
|
|
|
@ -269,7 +270,7 @@ def get_special_tool_information(vehicle): |
|
|
|
# my_id,keywords from `tabSpecial Tool Information` |
|
|
|
# where vehicle="{vehicle}";''', as_dict=1) |
|
|
|
|
|
|
|
special_tool_information = frappe.db.sql(''' select name,vehicle,tool_type,category,tool_name,aggregate_name,tool_image, |
|
|
|
special_tool_information = frappe.db.sql(''' select name,vehicle,tool_type,category,tool_name,aggregate_name, aggregate_image as 'tool_image', |
|
|
|
pdf,image,video,keywords,display_order,my_id,active_status from `tabSpecial Tool Information` |
|
|
|
where vehicle= '%s' ;''' % (vehicle), as_dict=1) |
|
|
|
for s in special_tool_information: |
|
|
|