]> de.git.xonotic.org Git - xonotic/xonstat.git/commit
Handle the halving of weapon stats a little better.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 8 Sep 2012 18:59:00 +0000 (14:59 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 8 Sep 2012 18:59:00 +0000 (14:59 -0400)
commit02c0cb0cc14d70962136e3fb5b81e59ce35f8bde
tree5b568bed456459843b90153860c3dc341b76acda
parentcf4e74be3b45d840434ff70c962af1f0cfb78610
Handle the halving of weapon stats a little better.

Default PlayerWeaponStat rows to all 0 to protect for missing
accuracy data. Also halve all of the pwstat members at once
instead of checking on each loop.
xonstat/models.py
xonstat/views/submission.py