]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
fix bot-detection
authorJan Behrens <zykure@web.de>
Sun, 21 Apr 2013 10:26:15 +0000 (12:26 +0200)
committerJan Behrens <zykure@web.de>
Sun, 21 Apr 2013 10:26:15 +0000 (12:26 +0200)
xonstat/views/submission.py

index 399654c07f873e24cf0d2389561daddb37a58f0f..1f41dab2ff83e9dbeabc07910e8de0c60320790f 100644 (file)
@@ -201,7 +201,7 @@ def is_real_player(events):
     """\r
     Determines if a given set of events correspond with a non-bot\r
     """\r
-    if not events['P'].startswith('bot'):\r
+    if not events['P'].startswith('bot#'):\r
         return True\r
     else:\r
         return False\r
@@ -632,7 +632,6 @@ def create_game_stat(session, game_meta, game, server, gmap, player, events):
         if key == 'scoreboard-pickups': pgstat.pickups = int(value)\r
         if key == 'scoreboard-caps': pgstat.captures = int(value)\r
         if key == 'scoreboard-score': pgstat.score = int(round(float(value)))\r
-        if key == 'scoreboard-teamscore': pgstat.teamscore = int(round(float(value)))\r
         if key == 'scoreboard-deaths': pgstat.deaths = int(value)\r
         if key == 'scoreboard-kills': pgstat.kills = int(value)\r
         if key == 'scoreboard-suicides': pgstat.suicides = int(value)\r