From 670fe136973eaed3567746df21fd209fd0344a86 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 13 Sep 2021 23:22:01 +0200 Subject: [PATCH] fd --- files/routes/admin.py | 2 +- files/templates/userpage.html | 15 ++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 26b16c8e1..b73c52706 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -60,7 +60,7 @@ def toggle_club_ban(v, username): u.club_banned = not u.club_banned for x in u.alts: - x.club_banned = not x.club_banned + x.club_banned = u.club_banned return { "message": f"@{username} has been kicked from the country club. Deserved." if u.club_banned else f"@{username}'s ban from club removed" diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 2e5c3ca9c..fc481d23d 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -328,12 +328,8 @@ - {% if u.club_banned %} - - {% else %} - - {% endif %} - {% endif %} + +

 					

User ID: {{u.id}}

{% if v and v.admin_level >=4 %} @@ -513,11 +509,8 @@ {% if v.admin_level > 1 %} - {% if u.club_banned %} - - {% else %} - - {% endif %} + +