From: Ant Zucaro Date: Tue, 17 Oct 2017 23:32:52 +0000 (-0400) Subject: If no frag matrix row is found, show zeros. X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=commitdiff_plain;h=83c987309f734ba0d2b101edf8d082e97592eade If no frag matrix row is found, show zeros. If a player has no frags, s/he won't have a frag matrix row, but will still have a record in the player_game_stats table. --- diff --git a/xonstat/templates/frag_matrix.mako b/xonstat/templates/frag_matrix.mako index 7c1c5ce..47663c2 100644 --- a/xonstat/templates/frag_matrix.mako +++ b/xonstat/templates/frag_matrix.mako @@ -23,7 +23,12 @@ else: victim_index = "-1" %> + + % if pgfm: ${pgfm.matrix.get(victim_index, 0)} + % else: + 0 + % endif % endfor % endfor