chunk is already a list (#14272)

This commit is contained in:
Josh Hawkins 2024-10-10 18:53:11 -05:00 committed by GitHub
parent 8d753f821d
commit 30b5faebae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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...")