This commit is contained in:
Florian Bezannier
2025-04-09 09:04:07 +02:00
committed by Florian BEZANNIER
parent b0f4ced352
commit d2d105b7f0
+4 -3
View File
@@ -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