From c3f2611be26865446607c5d59957a2fbe598a1b6 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 23 Oct 2016 07:51:05 -0400 Subject: [PATCH] Show the correct lifetime information in the template. --- xonstat/templates/server_info.mako | 2 +- xonstat/views/server.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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): -- 2.39.2