From 043eab56204ac3b915fbaa24fbc16a7d2420b9d4 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Mon, 9 Feb 2026 02:54:58 -0500 Subject: [PATCH] Revert "[TIZI/TICI] ui: drive stat cache is a json already" This reverts commit 51d3f0dea29ee4ddb773fc8d499e2cc6398291d8. --- selfdrive/ui/sunnypilot/layouts/settings/trips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/sunnypilot/layouts/settings/trips.py b/selfdrive/ui/sunnypilot/layouts/settings/trips.py index 1a51509ad..185b0adc4 100644 --- a/selfdrive/ui/sunnypilot/layouts/settings/trips.py +++ b/selfdrive/ui/sunnypilot/layouts/settings/trips.py @@ -54,7 +54,7 @@ class TripsLayout(Widget): if not stats: return {} try: - return stats + return json.loads(stats) except Exception: cloudlog.exception(f"Failed to decode drive stats: {stats}") return {}