From 4e28718d91df8c03285ecc576293288f34aed379 Mon Sep 17 00:00:00 2001 From: Jan Behrens Date: Sun, 21 Apr 2013 12:26:15 +0200 Subject: [PATCH] fix bot-detection --- xonstat/views/submission.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index 399654c..1f41dab 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -201,7 +201,7 @@ def is_real_player(events): """ Determines if a given set of events correspond with a non-bot """ - if not events['P'].startswith('bot'): + if not events['P'].startswith('bot#'): return True else: return False @@ -632,7 +632,6 @@ def create_game_stat(session, game_meta, game, server, gmap, player, events): if key == 'scoreboard-pickups': pgstat.pickups = int(value) if key == 'scoreboard-caps': pgstat.captures = int(value) if key == 'scoreboard-score': pgstat.score = int(round(float(value))) - if key == 'scoreboard-teamscore': pgstat.teamscore = int(round(float(value))) if key == 'scoreboard-deaths': pgstat.deaths = int(value) if key == 'scoreboard-kills': pgstat.kills = int(value) if key == 'scoreboard-suicides': pgstat.suicides = int(value) -- 2.39.2