From 25a194ffdce667f5de74d1d775c0829ff788b39f Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 23 Oct 2016 10:02:09 -0400 Subject: [PATCH] Add lifetime value to all server top* HTML views. --- xonstat/templates/server_top_maps.mako | 2 +- xonstat/templates/server_top_players_index.mako | 2 +- xonstat/templates/server_top_scorers.mako | 2 +- xonstat/views/server.py | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) 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, } -- 2.39.2