Remove unused code.
This commit is contained in:
parent
5ac6260d60
commit
1001c51bc1
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue