From 26d29773cc263a956245235f88db906a5b4108c5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 23 Jul 2021 17:30:15 +0200 Subject: [PATCH] sneed --- drama/routes/settings.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drama/routes/settings.py b/drama/routes/settings.py index ac8c7f4ef..5444d21a8 100644 --- a/drama/routes/settings.py +++ b/drama/routes/settings.py @@ -67,9 +67,8 @@ def settings_profile_post(v): if request.values.get("animatedname", v.animatedname) != v.animatedname: if v.animatedname == False: users1, users2 = leaderboard() - print(users1) - print(v) - if v not in users1: return jsonify({"error": "You must be in the top 25 leaderboard or be a patron to apply an animated name!"}), 403 + users1 = [x.id for x in users1] + if v.id not in users1: return jsonify({"error": "You must be in the top 25 leaderboard or be a patron to apply an animated name!"}), 403 updated = True v.animatedname = request.values.get("animatedname", None) == 'true'