]> git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/models.py
Handle the halving of weapon stats a little better.
[xonotic/xonstat.git] / xonstat / models.py
index 6de2fa05666948a0bd9fcde785a0c1bf83fab754..6b29c2cc9c998f2de698d7bcf617dc6dc65a8228 100644 (file)
@@ -157,6 +157,13 @@ class PlayerAchievement(object):
 
 
 class PlayerWeaponStat(object):
+    def __init__(self):
+        self.fired = 0
+        self.max = 0
+        self.hit = 0
+        self.actual = 0
+        self.frags = 0
+
     def __repr__(self):
         return "<PlayerWeaponStat(%s, %s, %s)>" % (self.player_weapon_stats_id, self.player_id, self.game_id)