From: Ant Zucaro Date: Fri, 29 Mar 2013 19:38:53 +0000 (-0400) Subject: Put commas in the aggregate stats line. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cdc590df08bb0a1e5bc3907ba51ee2f91d56473a;p=xonotic%2Fxonstat.git Put commas in the aggregate stats line. --- diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 62d9887..f823cb6 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -15,7 +15,7 @@ Leaderboard % if summary_stats is None:

Tracking Xonotic statistics since October 2011.

% else: -

Tracking ${summary_stats.total_players} players, ${summary_stats.total_games} games (${summary_stats.duel_games} duel, ${summary_stats.ctf_games} ctf, ${summary_stats.dm_games} dm), and ${summary_stats.total_servers} servers since October 2011.

+

Tracking ${'{:2,d}'.format(summary_stats.total_players)} players, ${'{:2,d}'.format(summary_stats.total_games)} games (${'{:2,d}'.format(summary_stats.duel_games)} duel; ${'{:2,d}'.format(summary_stats.ctf_games)} ctf; ${'{:2,d}'.format(summary_stats.dm_games)} dm) and ${'{:2,d}'.format(summary_stats.total_servers)} servers since October 2011.

% endif