remotes/1693045480750635534/spooky-22
Aevann1 2021-07-23 17:30:15 +02:00
parent cf604cc616
commit 26d29773cc
1 changed files with 2 additions and 3 deletions

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'