mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-14 00:17:05 +01:00
Fix recording cleanup logic again (#13527)
This commit is contained in:
parent
7626dd239a
commit
e80322dab7
@ -74,14 +74,12 @@ class RecordingCleanup(threading.Thread):
|
|||||||
.where(ReviewSegment.camera == config.name)
|
.where(ReviewSegment.camera == config.name)
|
||||||
.where(
|
.where(
|
||||||
(
|
(
|
||||||
ReviewSegment.severity
|
(ReviewSegment.severity == "alert")
|
||||||
== "alert" & ReviewSegment.end_time
|
& (ReviewSegment.end_time < alert_expire_date)
|
||||||
< alert_expire_date
|
|
||||||
)
|
)
|
||||||
| (
|
| (
|
||||||
ReviewSegment.severity
|
(ReviewSegment.severity == "detection")
|
||||||
== "detection" & ReviewSegment.end_time
|
& (ReviewSegment.end_time < detection_expire_date)
|
||||||
< detection_expire_date
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.namedtuples()
|
.namedtuples()
|
||||||
|
Loading…
Reference in New Issue
Block a user