Skip to content

Commit

Permalink
[FIX] Chargings duration bad conversion + dash type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikado8231 authored and flobz committed Nov 25, 2023
1 parent dfa4e8f commit e63dfd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psa_car_controller/psacc/application/charging.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _calculated_fields(charge_list: list):
if c.get("stop_at") and c.get("start_at"):
c.update(
{
"duration_min": (c.get("stop_at") - c.get("start_at")).seconds
"duration_min": (c.get("stop_at") - c.get("start_at")).total_seconds()
/ 60,
"duration_str": str((c.get("stop_at") - c.get("start_at"))),
}
Expand Down

0 comments on commit e63dfd3

Please sign in to comment.