mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-22 01:16:14 +00:00
fix: #993
This commit is contained in:
committed by
Florian BEZANNIER
parent
b0f4ced352
commit
d2d105b7f0
@@ -58,9 +58,10 @@ class Trips(list):
|
||||
for vin in vehicles:
|
||||
trips = Trips()
|
||||
vin = vin[0]
|
||||
res = conn.execute('SELECT Timestamp, VIN, longitude, latitude, mileage, level, moving, temperature, '
|
||||
'level_fuel, altitude FROM position WHERE VIN=? '
|
||||
'AND mileage IS NOT NULL ORDER BY Timestamp', (vin,)).fetchall()
|
||||
res = conn.execute(
|
||||
'SELECT Timestamp, VIN, longitude, latitude, mileage, level, moving, temperature, '
|
||||
'level_fuel, altitude FROM position WHERE VIN=? '
|
||||
'AND mileage IS NOT NULL AND Timestamp IS NOT NULL ORDER BY Timestamp', (vin,)).fetchall()
|
||||
if len(res) > 1:
|
||||
car = vehicles_list.get_car_by_vin(vin)
|
||||
assert car is not None
|
||||
|
||||
Reference in New Issue
Block a user