From 6ac36e84364cf5e74f14741a47ab676e97af17fe Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Fri, 14 Jul 2023 14:30:47 +0300 Subject: [PATCH] Fix: Add limit to event query (#7108) * Add limit to event query for fetching latest event with specified label and camera name * Refactor the label_thumbnail function in frigate/http.py to simplify the event_query logic and improve code readability --- frigate/http.py | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index f3e65381f..7859605e6 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -593,24 +593,14 @@ def timeline(): @bp.route("//