From 0b61a832705dfd8714dcb6b6ca425f00277fe680 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Fri, 28 Oct 2022 01:16:51 -0500 Subject: [PATCH] this leaderboard code is affecting my mental sanity idk maybe this'll fix it it's 1 am who knows anything about coding anymore --- files/templates/leaderboard.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/files/templates/leaderboard.html b/files/templates/leaderboard.html index 5cbe2a830..fa88d062b 100644 --- a/files/templates/leaderboard.html +++ b/files/templates/leaderboard.html @@ -1,16 +1,17 @@ {% extends "settings2.html" %} {% block pagetitle %}Leaderboard{% endblock %} {% block content %} -{%-set leaderboards = [ - ('coins', 'Coins', True), ('spent', 'Spent in shop', True), ('truescore', 'Truescore', True), ('followers', 'Followers', True), - ('posts', 'Posts', True), ('comments', 'Comments', True), ('awards', 'Awards', True), ('badges', 'Badges', True), - ('marseys', 'Marseys', SITE_NAME == 'rDrama') ('blocked', 'Blocked', True), ('owned-hats', 'Owned hats', True), ('designed-hats', 'Designed hats', True, False) +{%- +set LEADERBOARDS = [ + ('coins', 'Coins', True, True), ('spent', 'Spent in shop', True, True), ('truescore', 'Truescore', True, True), ('followers', 'Followers', True, True), + ('posts', 'Posts', True, True), ('comments', 'Comments', True, True), ('awards', 'Awards', True, True), ('badges', 'Badges', True, True), + ('marseys', 'Marseys', SITE_NAME == 'rDrama', True) ('blocked', 'Blocked', True, True), ('owned-hats', 'Owned hats', True, True), ('designed-hats', 'Designed hats', True, False) ] -%}

 
- {% for lb in leaderboards %} + {% for lb in LEADERBOARDS %} {% if lbs[2] %} - {{lb[1]}}{% if not lb[3] %} •{% endif %} + {{lb[1]}}{% if lb[3] %} •{% endif %} {% endif %} {% endfor %}