Face tweaks (#17290)

* Ensure doesn't fail due to missing dir

* Remove redundant settings from tabs

* Adjust selection method for mobile

* Fix button descendent error

* Ensure train is option on mobile

* Cleanup face images

* Cleanup
This commit is contained in:
Nicolas Mowen
2025-03-21 12:47:32 -05:00
committed by GitHub
parent 060659044e
commit 08cf0def6e
5 changed files with 137 additions and 70 deletions
+3
View File
@@ -30,6 +30,9 @@ router = APIRouter(tags=[Tags.events])
def get_faces():
face_dict: dict[str, list[str]] = {}
if not os.path.exists(FACE_DIR):
return JSONResponse(status_code=200, content={})
for name in os.listdir(FACE_DIR):
face_dir = os.path.join(FACE_DIR, name)