From e05b1197c67463c87be54de365db8b3fa9091677 Mon Sep 17 00:00:00 2001 From: TLSM Date: Sun, 2 Oct 2022 15:37:07 -0400 Subject: [PATCH] Identify benefactors in listing. --- files/routes/static.py | 2 +- files/templates/patrons.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/files/routes/static.py b/files/routes/static.py index bc7adb1d5a..4b794b288b 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -113,7 +113,7 @@ def patrons(v): users = g.db.query(User).filter(User.patron > 0).order_by(User.patron.desc(), User.id).all() - return render_template("patrons.html", v=v, users=users) + return render_template("patrons.html", v=v, users=users, benefactor_def=AWARDS['benefactor']) @app.get("/admins") @app.get("/badmins") diff --git a/files/templates/patrons.html b/files/templates/patrons.html index cad2d5522b..27075e99c0 100644 --- a/files/templates/patrons.html +++ b/files/templates/patrons.html @@ -15,6 +15,9 @@ {% include "user_in_table.html" %} 2{{user.patron}} + {% if user.patron_utc %} + + {% endif %} {% endfor %}