small fix level_fuel 0 for hyrbrid cars

This commit is contained in:
jlayec
2021-02-13 10:52:11 +00:00
parent 87a9c787b9
commit a9f1fa482d
+1 -1
View File
@@ -499,7 +499,7 @@ class MyPSACC:
level_fuel = conn.execute("SELECT level_fuel FROM position WHERE level_fuel>0 AND VIN=? ORDER BY Timestamp DESC LIMIT 1",(vin,)).fetchone()[0]
logger.info(f"level_fuel fixed with last real value {level_fuel} for {vin}")
except TypeError:
level_fuel = ''
level_fuel = None
logger.info(f"level_fuel unfixed for {vin}")
conn.execute(