From: Ant Zucaro Date: Sun, 23 Oct 2016 14:02:09 +0000 (-0400) Subject: Add lifetime value to all server top* HTML views. X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=commitdiff_plain;h=25a194ffdce667f5de74d1d775c0829ff788b39f Add lifetime value to all server top* HTML views. --- diff --git a/xonstat/templates/server_top_maps.mako b/xonstat/templates/server_top_maps.mako index 9fdfe14..93819c2 100644 --- a/xonstat/templates/server_top_maps.mako +++ b/xonstat/templates/server_top_maps.mako @@ -36,7 +36,7 @@ % endfor -

Note: these figures are from the past 7 days +

Note: these figures are from the past ${lifetime} days diff --git a/xonstat/templates/server_top_players_index.mako b/xonstat/templates/server_top_players_index.mako index 3bba6d5..344a02e 100644 --- a/xonstat/templates/server_top_players_index.mako +++ b/xonstat/templates/server_top_players_index.mako @@ -38,7 +38,7 @@ % endfor -

Note: these figures are from the past 7 days +

Note: these figures are from the past ${lifetime} days diff --git a/xonstat/templates/server_top_scorers.mako b/xonstat/templates/server_top_scorers.mako index ade10d5..0a1f63d 100644 --- a/xonstat/templates/server_top_scorers.mako +++ b/xonstat/templates/server_top_scorers.mako @@ -36,7 +36,7 @@ % endfor -

Note: these figures are from the past 7 days +

Note: these figures are from the past ${lifetime} days diff --git a/xonstat/views/server.py b/xonstat/views/server.py index 9cf7d91..6aae2c3 100644 --- a/xonstat/views/server.py +++ b/xonstat/views/server.py @@ -117,6 +117,7 @@ class ServerTopMaps(ServerInfoBase): return { "server_id": self.server_id, "top_maps": self.top_maps, + "lifetime": self.lifetime, "query": query, } @@ -190,6 +191,7 @@ class ServerTopScorers(ServerInfoBase): return { "server_id": self.server_id, "top_scorers": top_scorers, + "lifetime": self.lifetime, "query": query, } @@ -262,6 +264,7 @@ class ServerTopPlayers(ServerInfoBase): return { "server_id": self.server_id, "top_players": top_players, + "lifetime": self.lifetime, "query": query, }