From 79fabbb6b0a6653235a7a71f1bbb532740c0b558 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 7 Oct 2023 08:16:12 -0600 Subject: [PATCH] Fix recording snapshot time range (#8073) * Fix recording snapshot time range * Formatting * Formatting --- frigate/http.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frigate/http.py b/frigate/http.py index f9b64b0a4..c3f39b683 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -1351,7 +1351,10 @@ def get_snapshot_from_recording(camera_name: str, frame_time: str): Recordings.start_time, ) .where( - ((frame_time > Recordings.start_time) & (frame_time < Recordings.end_time)) + ( + (frame_time >= Recordings.start_time) + & (frame_time <= Recordings.end_time) + ) ) .where(Recordings.camera == camera_name) )