From: Ant Zucaro Date: Wed, 17 Apr 2013 00:59:06 +0000 (-0400) Subject: Round Elo. We do not need that to the thousandth :) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=41debd364ea32bdb62921a4db464f0aee2797cb2;p=xonotic%2Fxonstat.git Round Elo. We do not need that to the thousandth :) --- diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index a856b24..3622c79 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -56,8 +56,8 @@ Leaderboard % for r in rs: ${i} - ${r.nick_html_colors()|n} - ${round(r.elo, 3)} + ${r.nick_html_colors(18)|n} + ${int(round(r.elo))} <% i = i+1 %> % endfor diff --git a/xonstat/templates/rank_index.mako b/xonstat/templates/rank_index.mako index 632823f..fbfdd8a 100644 --- a/xonstat/templates/rank_index.mako +++ b/xonstat/templates/rank_index.mako @@ -30,7 +30,7 @@ Capture The Flag Rank Index ${rank.rank} ${rank.nick_html_colors()|n} - ${round(rank.elo, 3)} + ${int(round(rank.elo))} <% i += 1 %> % endfor