From 14e9824e9e74035faa14daa0e2b16e005f682194 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 25 Nov 2012 10:37:01 -0500 Subject: [PATCH] Make recent games more bullet-resistant :) --- xonstat/templates/server_info.mako | 2 ++ xonstat/views/server.py | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/xonstat/templates/server_info.mako b/xonstat/templates/server_info.mako index 70f0053..06d33bf 100644 --- a/xonstat/templates/server_info.mako +++ b/xonstat/templates/server_info.mako @@ -123,6 +123,7 @@ Server Information +% if len(recent_games) > 0:

Most Recent Games

@@ -156,6 +157,7 @@ Server Information
+% endif % endif diff --git a/xonstat/views/server.py b/xonstat/views/server.py index b3de5d1..d25e8e8 100644 --- a/xonstat/views/server.py +++ b/xonstat/views/server.py @@ -138,9 +138,6 @@ def server_info(request): for i in range(leaderboard_count-len(serverinfo_data['top_players'])): serverinfo_data['top_players'].append(('-', '-', '-')) - for i in range(recent_games_count-len(serverinfo_data['recent_games'])): - serverinfo_data['recent_games'].append(('-', '-', '-', '-')) - return serverinfo_data -- 2.39.2