From 0cab370e1272d5b82f79ad5071a508299b02256b Mon Sep 17 00:00:00 2001 From: lza_menace Date: Wed, 31 Aug 2022 11:37:03 -0700 Subject: [PATCH] show list of active mods and their addresses --- suchwow/app.py | 3 ++- suchwow/templates/about.html | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/suchwow/app.py b/suchwow/app.py index 9e9eb1f..b9bae69 100644 --- a/suchwow/app.py +++ b/suchwow/app.py @@ -76,7 +76,8 @@ def mod_queue(): @app.route("/about") def about(): - return render_template("about.html") + mods = Profile.select().join(Moderator, on=(Profile.username == Moderator.username)) + return render_template("about.html", mods=mods) @app.cli.command("init") def init(): diff --git a/suchwow/templates/about.html b/suchwow/templates/about.html index 2c3ada6..3ca55af 100644 --- a/suchwow/templates/about.html +++ b/suchwow/templates/about.html @@ -12,8 +12,9 @@

If you've made WOW from memes, please consider donating to our mod team - we work hard to ensure only the finest quality memes are shown for your viewing pleasure:

-

qvqc (top mod): WW3rVRuwdB5Bb95mZuGpunguz7Ers3Gao6EGLYZ6z2uEA9RsYzbZN1rfT74gzEDxyfNSVcpnMvnUhZTLfjiE73eu29ErXTDi4

-

lza_menace (dev): WW3CRUnpWnAQmXyr8rgd5qVneg3tTKbRrZu2qbTzjwMNEtvddodV2inPbRSGjcdRyHKVNsNkwWccjN6iKu1FAGr32hqKzikQP

+ {% for mod in mods %} +

{{ mod.username }} - {{ mod.address or '? (update your profile, bub!)' }}

+ {% endfor %}