From 30b5faebaea4bee6f5c2b5366b8e4472d5687907 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:53:11 -0500 Subject: [PATCH] chunk is already a list (#14272) --- frigate/events/cleanup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/events/cleanup.py b/frigate/events/cleanup.py index 9442eabe9..7d3e7c456 100644 --- a/frigate/events/cleanup.py +++ b/frigate/events/cleanup.py @@ -229,8 +229,8 @@ class EventCleanup(threading.Thread): Event.delete().where(Event.id << chunk).execute() if self.config.semantic_search.enabled: - self.db.delete_embeddings_description(event_ids=[chunk]) - self.db.delete_embeddings_thumbnail(event_ids=[chunk]) + self.db.delete_embeddings_description(event_ids=chunk) + self.db.delete_embeddings_thumbnail(event_ids=chunk) logger.debug(f"Deleted {len(events_to_delete)} embeddings") logger.info("Exiting event cleanup...")