From: Jan Behrens Date: Sun, 21 Apr 2013 10:26:15 +0000 (+0200) Subject: fix bot-detection X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4e28718d91df8c03285ecc576293288f34aed379;p=xonotic%2Fxonstat.git fix bot-detection --- 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)