mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-28 06:39:01 +03:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user