From 978d0f07ffad5aa6b38e2b3680d8b75827c85113 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Thu, 30 Nov 2023 07:29:35 -0700 Subject: [PATCH] Use iterator --- frigate/record/cleanup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frigate/record/cleanup.py b/frigate/record/cleanup.py index be7aa5aab..c2c7d32e7 100644 --- a/frigate/record/cleanup.py +++ b/frigate/record/cleanup.py @@ -128,6 +128,7 @@ class RecordingCleanup(threading.Thread): ) .order_by(Previews.start_time) .namedtuples() + .iterator() ) # expire previews