This commit is contained in:
Aevann1 2021-07-23 17:30:15 +02:00
parent 8c43657b86
commit d577276162

View file

@ -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'