diff --git a/files/helpers/discord.py b/files/helpers/discord.py index d7c3fa2e7..6b4011b7c 100644 --- a/files/helpers/discord.py +++ b/files/helpers/discord.py @@ -14,10 +14,11 @@ ROLES={ "feedback": "850716291714383883", "newuser": "854783259229421589", "norep": "850971811918512208", - "paypig": "868129042346414132", - "renthog": "875569477671067688", - "landchad": "869434199575236649", - "turboautist": "868140288013664296", + "1": "868129042346414132", + "2": "875569477671067688", + "3": "869434199575236649", + "4": "868140288013664296", + "8": "868140288013664296", } def discord_wrap(f): diff --git a/files/routes/discord.py b/files/routes/discord.py index 4fc7baa86..7a7be3439 100644 --- a/files/routes/discord.py +++ b/files/routes/discord.py @@ -120,6 +120,8 @@ def discord_redirect(v): time.sleep(0.1) + if v.patron: add_role(v, str(v.patron)) + add_role(v, "feedback") time.sleep(0.1) diff --git a/files/routes/static.py b/files/routes/static.py index 583403241..044008820 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -46,11 +46,11 @@ def patrons(v): users = [x for x in g.db.query(User).filter(User.patron > 0).order_by(User.patron.desc()).all()] return render_template("patrons.html", v=v, users=users) -@app.get("/badmins") +@app.get("/admins") @auth_desired -def badmins(v): - badmins = g.db.query(User).filter_by(admin_level=6).order_by(User.coins.desc()).all() - return render_template("badmins.html", v=v, badmins=badmins) +def admins(v): + admins = g.db.query(User).filter_by(admin_level=6).order_by(User.coins.desc()).all() + return render_template("admins.html", v=v, admins=admins) @app.get("/log") @auth_desired diff --git a/files/templates/badges.html b/files/templates/badges.html index 1877cccf9..0a4c56369 100644 --- a/files/templates/badges.html +++ b/files/templates/badges.html @@ -30,7 +30,7 @@
Coins | -{% for user in badmins %} +{% for user in admins %}|
---|---|
{{user.username}} | {{user.coins}} | diff --git a/files/templates/settings2.html b/files/templates/settings2.html index 216483d98..86d2a619f 100644 --- a/files/templates/settings2.html +++ b/files/templates/settings2.html @@ -98,7 +98,7 @@ Leaderboard