diff --git a/drama/routes/settings.py b/drama/routes/settings.py index e3ef39f00..4c0c9c146 100644 --- a/drama/routes/settings.py +++ b/drama/routes/settings.py @@ -67,6 +67,7 @@ def settings_profile_post(v): if request.values.get("animatedname", v.animatedname) != v.animatedname: if v.animatedname == False: users1, users2 = leaderboard() + print(users1) if v not in users1 and v not in users2: return jsonify({"error": "You must be in the leaderboard to apply animated name!"}), 403 updated = True v.animatedname = request.values.get("animatedname", None) == 'true' diff --git a/drama/templates/settings_profile.html b/drama/templates/settings_profile.html index f68c299f6..86e55e085 100644 --- a/drama/templates/settings_profile.html +++ b/drama/templates/settings_profile.html @@ -314,53 +314,50 @@
- + -
+
-
- + + - {% for color in ['ff66ac','805ad5','62ca56','38a169','80ffff','2a96f3','eb4963','ff0000','f39731','30409f','3e98a7','e4432d','7b9ae4','ec72de','7f8fa6', 'f8db58'] %} - - - {% endfor %} + {% for color in ['ff66ac','805ad5','62ca56','38a169','80ffff','2a96f3','eb4963','ff0000','f39731','30409f','3e98a7','e4432d','7b9ae4','ec72de','7f8fa6', 'f8db58'] %} + + + {% endfor %} -
+ -
- - -
- -
-
- -
- + +
+ + +
+ + + +
+
- + Enable animated username (only available to users in the leaderboard and patrons) -
- +
- -
- + {% if not v.flairchanged %}