]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Round Elo. We do not need that to the thousandth :)
authorAnt Zucaro <azucaro@gmail.com>
Wed, 17 Apr 2013 00:59:06 +0000 (20:59 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 17 Apr 2013 00:59:06 +0000 (20:59 -0400)
xonstat/templates/main_index.mako
xonstat/templates/rank_index.mako

index a856b242c2ca09bc53418ea7babfeee25e173144..3622c793cd9a52266a265ff4979e08d5b7fe580e 100644 (file)
@@ -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
index 632823f9ce166eb4348aba47536ed01754c97166..fbfdd8a0d1add974a69725214b473ace23bb5289 100644 (file)
@@ -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