From 5e1bf955465e4ace0aa0935095f215284458fc52 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sat, 22 Sep 2018 11:29:38 -0400 Subject: [PATCH] LMS and RC aren't supported either. --- xonstat/views/submission.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index bb9ff85..567d8a4 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -738,16 +738,10 @@ def create_default_game_stat(session, game_type_cd): pgstat.captures = pgstat.drops = pgstat.pushes = pgstat.destroys = 0 pgstat.carrier_frags = 0 - if game_type_cd == 'lms': - pgstat.kills = pgstat.deaths = pgstat.suicides = pgstat.lives = 0 - if game_type_cd == 'nb': pgstat.kills = pgstat.deaths = pgstat.suicides = pgstat.captures = 0 pgstat.drops = 0 - if game_type_cd == 'rc': - pgstat.kills = pgstat.deaths = pgstat.suicides = pgstat.laps = 0 - return pgstat @@ -857,7 +851,7 @@ def create_default_team_stat(session, game_type_cd): # all team game modes have a score, so we'll zero that out always teamstat.score = 0 - if game_type_cd in 'ca' 'ft' 'lms' 'ka': + if game_type_cd in 'ca' 'ft' 'ka': teamstat.rounds = 0 if game_type_cd == 'ctf': -- 2.39.2