mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
Fix preview query
This commit is contained in:
parent
cfcc0a59af
commit
c02d737c95
@ -206,14 +206,9 @@ class RecordingCleanup(threading.Thread):
|
|||||||
Previews.path,
|
Previews.path,
|
||||||
)
|
)
|
||||||
.where(
|
.where(
|
||||||
(Recordings.camera == config.name)
|
(Previews.camera == config.name)
|
||||||
& (
|
& (Previews.end_time < continuous_expire_date)
|
||||||
(
|
& (Previews.end_time < motion_expire_date)
|
||||||
(Recordings.end_time < continuous_expire_date)
|
|
||||||
& (Recordings.motion == 0)
|
|
||||||
)
|
|
||||||
| (Recordings.end_time < motion_expire_date)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
.order_by(Previews.start_time)
|
.order_by(Previews.start_time)
|
||||||
.namedtuples()
|
.namedtuples()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user