From 444b3d36f143abe60bd31d4d9a7dd1221060cd4e Mon Sep 17 00:00:00 2001 From: justcool393 Date: Tue, 1 Nov 2022 02:43:08 -0500 Subject: [PATCH] leaderboard: fix bug in table --- files/templates/leaderboard.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/templates/leaderboard.html b/files/templates/leaderboard.html index ce6f912b4..4a2d48d48 100644 --- a/files/templates/leaderboard.html +++ b/files/templates/leaderboard.html @@ -26,7 +26,6 @@ {% macro leaderboard_table(lb) %}
Top {{lb.limit}} by {{lb.table_header_name}}
-{# TODO: check at some point if the nesting divs are intentional #} @@ -37,10 +36,11 @@ {% for user in lb.all_users %} - {% if v.id == user.id %} + {% set user2 = lb.user_func(user) %} + {% if v.id == user2.id %} {% set style="class=\"self\"" %} {% endif %} - {{format_user_in_table(lb.user_func(user), style, loop.index, lb.value_func(user), lb.user_relative_url)}} + {{format_user_in_table(user2, style, loop.index, lb.value_func(user), lb.user_relative_url)}} {% endfor %} {% if lb.v_position %} {{format_user_in_table(v, "style=\"border-top:2px solid var(--primary)\"", lb.v_position, lb.v_value, lb.user_relative_url)}}