From 2778ce37b66e93b40c303909bffcc284d8127820 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Wed, 14 Nov 2012 20:49:30 -0500 Subject: [PATCH] Add the game's duration to the game info page, if it exists. --- xonstat/templates/game_info.mako | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xonstat/templates/game_info.mako b/xonstat/templates/game_info.mako index 44d1f9c..1c0fe39 100644 --- a/xonstat/templates/game_info.mako +++ b/xonstat/templates/game_info.mako @@ -35,6 +35,9 @@ Game Information Game Type: ${game.game_type_cd}
Server: ${server.name}
Map: ${map.name}
+ % if game.duration is not None: + Duration: ${"%s:%02d" % (game.duration.seconds/60, game.duration.seconds%60)} + % endif

-- 2.39.2