Skip to content

NVR with realtime local object detection for IP cameras

Fix recording snapshot time range (#8073)

Nicolas Mowen79fabbb6b0a6
diff --git a/frigate/http.py b/frigate/http.py
index f9b64b0a41..c3f39b683c 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)
)