From 5e37cd81a2a5a653f369ee114fecf40132215ca1 Mon Sep 17 00:00:00 2001 From: OpenSquared Date: Mon, 29 Jun 2026 23:34:32 +0200 Subject: [PATCH] fix: pass prediction_json and actual_json through to snapshot events The filtered event dict was built with explicit fields and omitted these two columns, so the frontend always received null despite the DB having valid data. Co-Authored-By: Claude Sonnet 4.6 --- backend/services/instrument_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/services/instrument_service.py b/backend/services/instrument_service.py index dd56e87..d48b57d 100644 --- a/backend/services/instrument_service.py +++ b/backend/services/instrument_service.py @@ -624,6 +624,8 @@ def _get_relevant_events( "surprise_pct": ev.get("surprise_pct"), "unit": ev.get("unit") or None, "absorption_pct": ev.get("absorption_pct"), + "prediction_json": ev.get("prediction_json") or None, + "actual_json": ev.get("actual_json") or None, }) # Sort by start_date asc for timeline display, cap at 30