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'