From 41debd364ea32bdb62921a4db464f0aee2797cb2 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Tue, 16 Apr 2013 20:59:06 -0400 Subject: [PATCH] Round Elo. We do not need that to the thousandth :) --- xonstat/templates/main_index.mako | 4 ++-- xonstat/templates/rank_index.mako | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2