From 2b3ceea31012e2f1d612f27ae1c199551c790d09 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 23 Nov 2021 02:22:28 +0200 Subject: [PATCH] sfsfd --- files/routes/admin.py | 2 +- files/templates/shadowbanned.html | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index a0c5b4c4e..03133f764 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -251,7 +251,7 @@ def post_rules(v): def shadowbanned(v): if not (v and v.admin_level > 1): abort(404) users = [x for x in g.db.query(User).filter(User.shadowbanned != None).all()] - return render_template("banned.html", v=v, users=users) + return render_template("shadowbanned.html", v=v, users=users) @app.get("/admin/agendaposters") diff --git a/files/templates/shadowbanned.html b/files/templates/shadowbanned.html index 94cb47ec3..a4eaf235d 100644 --- a/files/templates/shadowbanned.html +++ b/files/templates/shadowbanned.html @@ -6,16 +6,14 @@ # Name - Ban reason - Banned by + Shadowbanned by {% for user in users %} {{users.index(user)+1}} {{user.username}} - {% if user.ban_reason %}{{user.ban_reason}}{% endif %} - {{user.banned_by.username}} + {{user.shadowbanned}} {% endfor %}