sneed
parent
cf604cc616
commit
26d29773cc
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue