From: Ant Zucaro <azucaro@gmail.com> 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: <tr> <td>${i}</td> - <td><a href="${request.route_url('player_info', id=r.player_id)}" title="Go to the player info page for this player">${r.nick_html_colors()|n}</a></td> - <td>${round(r.elo, 3)}</td> + <td><a href="${request.route_url('player_info', id=r.player_id)}" title="Go to the player info page for this player">${r.nick_html_colors(18)|n}</a></td> + <td>${int(round(r.elo))}</td> </tr> <% 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 <tr> <td>${rank.rank}</td> <td><a href="${request.route_url("player_info", id=rank.player_id)}" title="Go to this player's info page">${rank.nick_html_colors()|n}</a></th> - <td>${round(rank.elo, 3)}</th> + <td>${int(round(rank.elo))}</th> </tr> <% i += 1 %> % endfor