From 83c987309f734ba0d2b101edf8d082e97592eade Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Tue, 17 Oct 2017 19:32:52 -0400 Subject: [PATCH] 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. --- xonstat/templates/frag_matrix.mako | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2