mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +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.severity
|
||||
== "alert" & ReviewSegment.end_time
|
||||
< alert_expire_date
|
||||
(ReviewSegment.severity == "alert")
|
||||
& (ReviewSegment.end_time < alert_expire_date)
|
||||
)
|
||||
| (
|
||||
ReviewSegment.severity
|
||||
== "detection" & ReviewSegment.end_time
|
||||
< detection_expire_date
|
||||
(ReviewSegment.severity == "detection")
|
||||
& (ReviewSegment.end_time < detection_expire_date)
|
||||
)
|
||||
)
|
||||
.namedtuples()
|
||||
|
Loading…
Reference in New Issue
Block a user