From: Ant Zucaro Date: Sat, 2 Feb 2013 15:41:11 +0000 (-0500) Subject: Workaround for missing fastest for RC/CTS X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=13b6e13be3f7c07810e1c0aed9c3645f001da665;p=xonotic%2Fxonstat.git Workaround for missing fastest for RC/CTS --- diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako index e243305..f9d412d 100644 --- a/xonstat/templates/scoreboard.mako +++ b/xonstat/templates/scoreboard.mako @@ -264,7 +264,11 @@ ${scoreboard_header(game_type_cd, pgstats[0])} % endif % if game_type_cd == 'cts': + % if pgstat.fastest is not None: ${round(float(pgstat.fastest.seconds) + (pgstat.fastest.microseconds/1000000.0), 2)} + % else: + - + % endif ${pgstat.deaths} % endif @@ -293,7 +297,13 @@ ${scoreboard_header(game_type_cd, pgstats[0])} ${pgstat.kills} ${pgstat.deaths} ${pgstat.pickups} - ${pgstat.time} + + % if pgstat.time is not None: + ${round(float(pgstat.time.seconds) + (pgstat.time.microseconds/1000000.0), 2)} + % else: + - + % endif + ${pgstat.fckills} % endif @@ -315,8 +325,18 @@ ${scoreboard_header(game_type_cd, pgstats[0])} % if game_type_cd == 'rc': ${pgstat.laps} + + % if pgstat.fastest is not None: ${round(float(pgstat.fastest.seconds) + (pgstat.fastest.microseconds/1000000.0), 2)} + % else: + - + % endif + + % if pgstat.time is not None: ${round(float(pgstat.time.seconds) + (pgstat.time.microseconds/1000000.0), 2)} + % else: + - + % endif % endif