From f7e98d2847a3ec8e1bdb7067ec03a7d4bdb6fd12 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 2 Feb 2018 08:44:36 +0100 Subject: [PATCH] Fix medal display on the Dota table --- templates/leaderboards.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/leaderboards.html b/templates/leaderboards.html index fc43711e..304a5bd5 100644 --- a/templates/leaderboards.html +++ b/templates/leaderboards.html @@ -38,11 +38,13 @@ {{ record.wins }}
- {% if record.get_rank_stars_url() %}{% endif %} - {% if record.rank_tier is not none and record.rank_tier >= 10 %} - {{ record.get_rank_name() }} {{ record.get_rank_number() }} - {% else %} + {% if record.rank_tier is not None %} + {% if record.get_rank_stars_url() %}{% endif %} + {% endif %} + {% if record.rank_tier is not None and record.rank_tier < 10 %} Unranked + {% else %} + {{ record.get_rank_name() }} {{ record.get_rank_number() }} {% endif %}