mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
chunk is already a list (#14272)
This commit is contained in:
parent
8d753f821d
commit
30b5faebae
@ -229,8 +229,8 @@ class EventCleanup(threading.Thread):
|
|||||||
Event.delete().where(Event.id << chunk).execute()
|
Event.delete().where(Event.id << chunk).execute()
|
||||||
|
|
||||||
if self.config.semantic_search.enabled:
|
if self.config.semantic_search.enabled:
|
||||||
self.db.delete_embeddings_description(event_ids=[chunk])
|
self.db.delete_embeddings_description(event_ids=chunk)
|
||||||
self.db.delete_embeddings_thumbnail(event_ids=[chunk])
|
self.db.delete_embeddings_thumbnail(event_ids=chunk)
|
||||||
logger.debug(f"Deleted {len(events_to_delete)} embeddings")
|
logger.debug(f"Deleted {len(events_to_delete)} embeddings")
|
||||||
|
|
||||||
logger.info("Exiting event cleanup...")
|
logger.info("Exiting event cleanup...")
|
||||||
|
Loading…
Reference in New Issue
Block a user