forked from Github/frigate
Fix recording cleanup logic again (#13527)
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user