diff --git a/files/templates/leaderboard.html b/files/templates/leaderboard.html
index 62b2e5bae..f33ed9ac7 100644
--- a/files/templates/leaderboard.html
+++ b/files/templates/leaderboard.html
@@ -16,6 +16,7 @@
{% macro format_user_in_table(user, style, position_no, value, user_relative_url) %}
+ {% set value = value | int %}
{{position_no}} |
{% include "user_in_table.html" %} |
@@ -40,7 +41,7 @@
{% macro leaderboard_table(lb, position, id, total_count, header_name, column_name, attr_name) %}
-<# TODO: check at some point if the nesting divs are intentional #>
+{# TODO: check at some point if the nesting divs are intentional #}
{{leaderboard_table_header(column_name)}}
@@ -78,7 +79,7 @@
{{format_user_in_table(user, style, loop.index, num, user_relative_url)}}
{% endfor %}
{% if position and (position[0] > total_count or not position[1]) %}
- {{format_user_in_table(v, "style=\"border-top:2px solid var(--primary)\"", position, position[1], user_relative_url)}}
+ {{format_user_in_table(v, "style=\"border-top:2px solid var(--primary)\"", position[0], position[1], user_relative_url)}}
{% endif %}