projects
/
xonotic
/
xonstat.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52f3666
)
If no frag matrix row is found, show zeros.
author
Ant Zucaro <azucaro@gmail.com>
Tue, 17 Oct 2017 23:32:52 +0000
(19:32 -0400)
committer
Ant Zucaro <azucaro@gmail.com>
Tue, 17 Oct 2017 23:32:52 +0000
(19:32 -0400)
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
patch
|
blob
|
history
diff --git
a/xonstat/templates/frag_matrix.mako
b/xonstat/templates/frag_matrix.mako
index 7c1c5ceebc49496d423264fd3db7f306d89d6db2..47663c2bbed6b9295e89aaf3ed1da072f22ff0eb 100644
(file)
--- a/
xonstat/templates/frag_matrix.mako
+++ b/
xonstat/templates/frag_matrix.mako
@@
-23,7
+23,12
@@
else:
victim_index = "-1"
%>
+
+ % if pgfm:
<td>${pgfm.matrix.get(victim_index, 0)}</td>
+ % else:
+ <td>0</td>
+ % endif
% endfor
</tr>
% endfor