|
@ -256,7 +256,7 @@ def check_all_vehicle_updates(vehicle_list=None): |
|
|
|
|
|
|
|
|
def get_vehicle_id(vehicle): |
|
|
def get_vehicle_id(vehicle): |
|
|
vehicle_id = frappe.db.sql( |
|
|
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: |
|
|
if vehicle_id: |
|
|
return vehicle_id[0]['vehicle_id'] |
|
|
return vehicle_id[0]['vehicle_id'] |
|
|
else: |
|
|
else: |
|
|