mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-23 18:06:15 +00:00
handle none mileage 2
This commit is contained in:
@@ -48,3 +48,7 @@ def record_charging():
|
||||
Charging.record_charging(car, "InProgress", date2, 85, latitude, longitude, "FR", "slow", 20, 60)
|
||||
Charging.record_charging(car, "InProgress", date3, 90, latitude, longitude, "FR", "slow", 20, 60)
|
||||
Charging.record_charging(car, "Stopped", date4, 91, latitude, longitude, "FR", "slow", 20, 60)
|
||||
|
||||
|
||||
def get_date(offset):
|
||||
return date3 + timedelta(minutes=60 * offset)
|
||||
|
||||
Reference in New Issue
Block a user