From: Ant Zucaro Date: Thu, 15 Nov 2012 01:49:30 +0000 (-0500) Subject: Add the game's duration to the game info page, if it exists. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=352efced080401c7836ec151a87f592465d249f8;p=xonotic%2Fxonstat.git Add the game's duration to the game info page, if it exists. --- 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