From 0c78fbd32ce2d56e37d4861c98697358430f0168 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:17:52 -0600 Subject: [PATCH] include max_estimated_speed in api responses --- frigate/api/event.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/frigate/api/event.py b/frigate/api/event.py index 3ba4ae426..d362a82bc 100644 --- a/frigate/api/event.py +++ b/frigate/api/event.py @@ -316,7 +316,14 @@ def events_explore(limit: int = 10): k: v for k, v in event.data.items() if k - in ["type", "score", "top_score", "description", "sub_label_score"] + in [ + "type", + "score", + "top_score", + "description", + "sub_label_score", + "max_estimated_speed", + ] }, "event_count": label_counts[event.label], } @@ -581,7 +588,15 @@ def events_search(request: Request, params: EventsSearchQueryParams = Depends()) processed_event["data"] = { k: v for k, v in event["data"].items() - if k in ["type", "score", "top_score", "description"] + if k + in [ + "type", + "score", + "top_score", + "description", + "sub_label_score", + "max_estimated_speed", + ] } if event["id"] in search_results: