Remove unused code.

This commit is contained in:
Edward Betts 2023-09-27 06:30:15 +01:00
parent 5ac6260d60
commit 1001c51bc1

View file

@ -389,14 +389,6 @@ def person_image_filename(person_id: int) -> str:
person = model.Person.query.get(person_id)
return os.path.join("wikidata_photo", "thumb", person.wikidata_photo[0])
for filename in person.wikidata_photo:
face_crop = "face_1_" + filename
full = os.path.join("static", "wikidata_photo", "face_cropped", face_crop)
if os.path.exists(full):
return os.path.join("wikidata_photo", "face_cropped", face_crop)
return os.path.join("wikidata_photo", "thumb", person.wikidata_photo[0])
@app.route("/login", methods=["GET", "POST"])
def login() -> str | Response: