Allow png/jpg/jpeg as well as webp

This commit is contained in:
leccelecce 2025-03-19 12:30:23 +00:00
parent e1b630b6ad
commit d45790e00f

View File

@ -39,7 +39,10 @@ def get_faces():
face_dict[name] = []
for file in sorted(
filter(lambda f: (f.endswith(".webp")), os.listdir(face_dir)),
filter(
lambda f: (f.lower().endswith((".webp", ".png", ".jpg", ".jpeg"))),
os.listdir(face_dir),
),
key=lambda f: os.path.getctime(os.path.join(face_dir, f)),
reverse=True,
):