From: Ant Zucaro Date: Sun, 23 Oct 2016 11:51:05 +0000 (-0400) Subject: Show the correct lifetime information in the template. X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=commitdiff_plain;h=c3f2611be26865446607c5d59957a2fbe598a1b6;hp=85414da21d923afb839ba8f937b73ba41cec6266 Show the correct lifetime information in the template. --- diff --git a/xonstat/templates/server_info.mako b/xonstat/templates/server_info.mako index 8bafa06..a6ae731 100644 --- a/xonstat/templates/server_info.mako +++ b/xonstat/templates/server_info.mako @@ -122,7 +122,7 @@
- *Most active stats are from the past 7 days + *Most active stats are from the past ${lifetime} days
diff --git a/xonstat/views/server.py b/xonstat/views/server.py index 953d6b7..1b5dc9b 100644 --- a/xonstat/views/server.py +++ b/xonstat/views/server.py @@ -277,6 +277,7 @@ class ServerInfo(ServerInfoBase): 'top_scorers': self.top_scorers_v.html(), 'top_maps': self.top_maps_v.html(), 'recent_games': self.recent_games, + 'lifetime': self.lifetime, } def json(self):