Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Dec 12, 2024
1 parent 2715fca commit 2b8ec3e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frigate/events/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,7 @@ def expire_clips(self) -> list[str]:
events_to_update = []

for batch in query.iterator():
try:
events_to_update.extend([event.id for event in batch])
except TypeError:
events_to_update.append(batch)
events_to_update.append(batch)

if len(events_to_update) >= CHUNK_SIZE:
logger.debug(
Expand Down

0 comments on commit 2b8ec3e

Please sign in to comment.