From fd6a3bd5d226535c25bccb4f8f4fd0f0907fe25b Mon Sep 17 00:00:00 2001 From: tpjanssen <25168870+tpjanssen@users.noreply.github.com> Date: Wed, 1 Nov 2023 12:14:51 +0100 Subject: [PATCH] API recordings snapsnot PNG fix (#8401) * Update http.py * Update http.py Limit query results --- frigate/http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frigate/http.py b/frigate/http.py index 0061d338f..725a6f467 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -1388,6 +1388,8 @@ 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: