Generic classification card (#20379)

* Refactor face card into generic classification card

* Update classification data card to use classification card

* Refactor state training grid to use classification card

* Refactor grouped face card into generic component

* Combine classification objects by event

* Fixup

* Cleanup

* Cleanup

* Do not fail if a single event is not found

* Save original frame

* Cleanup

* Undo
This commit is contained in:
Nicolas Mowen
2025-10-07 14:43:06 -05:00
committed by GitHub
parent 4bea69591b
commit 37afd5da6b
10 changed files with 705 additions and 452 deletions
+2 -4
View File
@@ -434,10 +434,8 @@ async def event_ids(ids: str, request: Request):
event = Event.get(Event.id == event_id)
await require_camera_access(event.camera, request=request)
except DoesNotExist:
return JSONResponse(
content=({"success": False, "message": f"Event {event_id} not found"}),
status_code=404,
)
# we should not fail the entire request if an event is not found
continue
try:
events = Event.select().where(Event.id << ids).dicts().iterator()