Fix fstring for sending the image link via API

I apparently cannot type
This commit is contained in:
Cara Salter 2024-04-01 15:11:56 +11:00
parent d715f3bd36
commit 524da29a38
No known key found for this signature in database
GPG key ID: A8A3A601440EADA5

View file

@ -34,7 +34,7 @@ def current_officers():
continue # Broken reference, continue continue # Broken reference, continue
img = url_for('static', filename="img/officers/placeholder.png") img = url_for('static', filename="img/officers/placeholder.png")
if exists(f"acmsite/{current_app.config['UPLOAD_FOLDER']}/{u.username()}.png"): if exists(f"acmsite/{current_app.config['UPLOAD_FOLDER']}/{u.username()}.png"):
img = url_for("main.officer_images", username="f{u.username()}.png") img = url_for("main.officer_images", username=f"{u.username()}.png")
officers_complete.append({ officers_complete.append({
"id": o.id, "id": o.id,
"position": o.position, "position": o.position,