diff --git a/smart_service/apis/update_validation.py b/smart_service/apis/update_validation.py index 5d79fc5..8b4027e 100644 --- a/smart_service/apis/update_validation.py +++ b/smart_service/apis/update_validation.py @@ -256,7 +256,7 @@ def check_all_vehicle_updates(vehicle_list=None): def get_vehicle_id(vehicle): vehicle_id = frappe.db.sql( - '''select myid as vehicle_id from `tabVehicle` where vehicle ='{0}'; '''.format(vehicle), as_dict=1) + '''select myid as vehicle_id from `tabVehicle` where name ='{0}'; '''.format(vehicle), as_dict=1) if vehicle_id: return vehicle_id[0]['vehicle_id'] else: