Fix recording snapshot time range (#8073)

* Fix recording snapshot time range

* Formatting

* Formatting
This commit is contained in:
Nicolas Mowen 2023-10-07 08:16:12 -06:00 committed by GitHub
parent 8941aa5311
commit 79fabbb6b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
)