NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix not deleting thumbnails (#19371)
Nicolas Mowen825460244977
diff --git a/frigate/events/cleanup.py b/frigate/events/cleanup.pyindex fde27aa0fd..1e97ca14c0 100644--- a/frigate/events/cleanup.py+++ b/frigate/events/cleanup.py@@ -340,21 +340,22 @@ class EventCleanup(threading.Thread):.where(Event.has_clip == False, Event.has_snapshot == False).iterator())- events_to_delete = [e.id for e in events]+ events_to_delete: list[Event] = [e for e in events]- for e in events:+ for e in events_to_delete:delete_event_thumbnail(e)logger.debug(f"Found {len(events_to_delete)} events that can be expired")if len(events_to_delete) > 0:- for i in range(0, len(events_to_delete), CHUNK_SIZE):- chunk = events_to_delete[i : i + CHUNK_SIZE]+ ids_to_delete = [e.id for e in events_to_delete]+ for i in range(0, len(ids_to_delete), CHUNK_SIZE):+ chunk = ids_to_delete[i : i + CHUNK_SIZE]logger.debug(f"Deleting {len(chunk)} events from the database")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)- logger.debug(f"Deleted {len(events_to_delete)} embeddings")+ logger.debug(f"Deleted {len(ids_to_delete)} embeddings")logger.info("Exiting event cleanup...")diff --git a/web/public/locales/pt_BR/audio.json b/web/public/locales/pt-BR/audio.jsonsimilarity index 100%rename from web/public/locales/pt_BR/audio.jsonrename to web/public/locales/pt-BR/audio.jsondiff --git a/web/public/locales/pt_BR/components/auth.json b/web/public/locales/pt-BR/components/auth.jsonsimilarity index 100%rename from web/public/locales/pt_BR/components/auth.jsonrename to web/public/locales/pt-BR/components/auth.jsondiff --git a/web/public/locales/pt_BR/components/icons.json b/web/public/locales/pt-BR/components/icons.jsonsimilarity index 100%rename from web/public/locales/pt_BR/components/icons.jsonrename to web/public/locales/pt-BR/components/icons.jsondiff --git a/web/public/locales/pt_BR/components/input.json b/web/public/locales/pt-BR/components/input.jsonsimilarity index 100%rename from web/public/locales/pt_BR/components/input.jsonrename to web/public/locales/pt-BR/components/input.jsondiff --git a/web/public/locales/pt_BR/objects.json b/web/public/locales/pt-BR/objects.jsonsimilarity index 100%rename from web/public/locales/pt_BR/objects.jsonrename to web/public/locales/pt-BR/objects.jsondiff --git a/web/public/locales/pt_BR/views/configEditor.json b/web/public/locales/pt-BR/views/configEditor.jsonsimilarity index 100%rename from web/public/locales/pt_BR/views/configEditor.jsonrename to web/public/locales/pt-BR/views/configEditor.jsondiff --git a/web/public/locales/pt_BR/views/events.json b/web/public/locales/pt-BR/views/events.jsonsimilarity index 100%rename from web/public/locales/pt_BR/views/events.jsonrename to web/public/locales/pt-BR/views/events.jsondiff --git a/web/public/locales/pt_BR/views/recording.json b/web/public/locales/pt-BR/views/recording.jsonsimilarity index 100%rename from web/public/locales/pt_BR/views/recording.jsonrename to web/public/locales/pt-BR/views/recording.jsondiff --git a/web/public/locales/zh_Hant/audio.json b/web/public/locales/zh-Hant/audio.jsonsimilarity index 100%rename from web/public/locales/zh_Hant/audio.jsonrename to web/public/locales/zh-Hant/audio.jsondiff --git a/web/public/locales/zh_Hant/components/auth.json b/web/public/locales/zh-Hant/components/auth.jsonsimilarity index 100%rename from web/public/locales/zh_Hant/components/auth.jsonrename to web/public/locales/zh-Hant/components/auth.jsondiff --git a/web/public/locales/zh_Hant/components/icons.json b/web/public/locales/zh-Hant/components/icons.jsonsimilarity index 100%rename from web/public/locales/zh_Hant/components/icons.jsonrename to web/public/locales/zh-Hant/components/icons.jsondiff --git a/web/public/locales/zh_Hant/components/input.json b/web/public/locales/zh-Hant/components/input.jsonsimilarity index 100%rename from web/public/locales/zh_Hant/components/input.jsonrename to web/public/locales/zh-Hant/components/input.jsondiff --git a/web/public/locales/zh_Hant/objects.json b/web/public/locales/zh-Hant/objects.jsonsimilarity index 100%rename from web/public/locales/zh_Hant/objects.jsonrename to web/public/locales/zh-Hant/objects.jsondiff --git a/web/public/locales/zh_Hant/views/configEditor.json b/web/public/locales/zh-Hant/views/configEditor.jsonsimilarity index 100%rename from web/public/locales/zh_Hant/views/configEditor.jsonrename to web/public/locales/zh-Hant/views/configEditor.jsondiff --git a/web/public/locales/zh_Hant/views/events.json b/web/public/locales/zh-Hant/views/events.jsonsimilarity index 100%rename from web/public/locales/zh_Hant/views/events.jsonrename to web/public/locales/zh-Hant/views/events.jsondiff --git a/web/public/locales/zh_Hant/views/recording.json b/web/public/locales/zh-Hant/views/recording.jsonsimilarity index 100%rename from web/public/locales/zh_Hant/views/recording.jsonrename to web/public/locales/zh-Hant/views/recording.json