diff --git a/frigate/api/record.py b/frigate/api/record.py index 44e243b04..c82de27c8 100644 --- a/frigate/api/record.py +++ b/frigate/api/record.py @@ -103,7 +103,9 @@ def get_recordings_storage_breakdown(request: Request): # 2. Event retention (aging out): recordings overlapping non-expired review segments # Use global config for expiry thresholds 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 = ( now - timedelta(days=config.record.detections.retain.days).total_seconds() )