mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-22 16:18:22 +03:00
style: fix ruff formatting in breakdown API endpoint
This commit is contained in:
parent
c98885ce20
commit
202db2cc0d
@ -103,7 +103,9 @@ def get_recordings_storage_breakdown(request: Request):
|
|||||||
# 2. Event retention (aging out): recordings overlapping non-expired review segments
|
# 2. Event retention (aging out): recordings overlapping non-expired review segments
|
||||||
# Use global config for expiry thresholds
|
# Use global config for expiry thresholds
|
||||||
config = request.app.frigate_config
|
config = request.app.frigate_config
|
||||||
alert_expire = now - timedelta(days=config.record.alerts.retain.days).total_seconds()
|
alert_expire = (
|
||||||
|
now - timedelta(days=config.record.alerts.retain.days).total_seconds()
|
||||||
|
)
|
||||||
detection_expire = (
|
detection_expire = (
|
||||||
now - timedelta(days=config.record.detections.retain.days).total_seconds()
|
now - timedelta(days=config.record.detections.retain.days).total_seconds()
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user