From 2cafcf698c78531402be957ac3f9105aaf9a38e3 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 9 Apr 2025 14:44:12 -0600 Subject: [PATCH] Cleanup --- frigate/api/classification.py | 6 ------ frigate/track/tracked_object.py | 1 - 2 files changed, 7 deletions(-) diff --git a/frigate/api/classification.py b/frigate/api/classification.py index 8c2d464d45..1f6d8b792e 100644 --- a/frigate/api/classification.py +++ b/frigate/api/classification.py @@ -250,12 +250,6 @@ def deregister_faces(request: Request, name: str, body: dict = None): json: dict[str, any] = body or {} list_of_ids = json.get("ids", "") - if not list_of_ids or len(list_of_ids) == 0: - return JSONResponse( - content=({"success": False, "message": "Not a valid list of ids"}), - status_code=404, - ) - context: EmbeddingsContext = request.app.embeddings context.delete_face_ids( name, map(lambda file: sanitize_filename(file), list_of_ids) diff --git a/frigate/track/tracked_object.py b/frigate/track/tracked_object.py index ee9883d370..9b4bb216a1 100644 --- a/frigate/track/tracked_object.py +++ b/frigate/track/tracked_object.py @@ -358,7 +358,6 @@ class TrackedObject: if now + 0.5 > self.last_published: self.last_published = now - print(f"running manual attribute update") return True return False