This commit is contained in:
Nicolas Mowen 2025-04-09 14:44:12 -06:00
parent 3565c43cf7
commit 2cafcf698c
2 changed files with 0 additions and 7 deletions

View File

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

View File

@ -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