From 21fbe343cf1cb8e74c13aaffc4b79227377adfb3 Mon Sep 17 00:00:00 2001 From: tpjanssen <25168870+tpjanssen@users.noreply.github.com> Date: Tue, 31 Oct 2023 16:51:40 +0100 Subject: [PATCH] Update http.py Limit query results --- frigate/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frigate/http.py b/frigate/http.py index beee5ed0d..725a6f467 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -1389,6 +1389,7 @@ def get_snapshot_from_recording(camera_name: str, frame_time: str): ) .where(Recordings.camera == camera_name) .order_by(Recordings.start_time.desc()) + .limit(1) ) try: