Fix recording snapshot time range

This commit is contained in:
Nicolas Mowen 2023-10-05 05:53:45 -06:00 committed by GitHub
parent 9a4f970337
commit 47798729ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1280,7 +1280,7 @@ def get_snapshot_from_recording(camera_name: str, frame_time: str):
Recordings.start_time, Recordings.start_time,
) )
.where( .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) .where(Recordings.camera == camera_name)
) )