[FIX] Chargings duration bad conversion + dash type

This commit is contained in:
Mikado8231
2023-11-25 13:06:45 +01:00
committed by Florian BEZANNIER
parent dfa4e8fb8d
commit e63dfd3ef5
@@ -104,7 +104,7 @@ class Charging:
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"))),
}