]> de.git.xonotic.org Git - xonotic/xonstat.git/commitdiff
Check for new-style bot hashkeys too.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 12 Jan 2012 13:35:39 +0000 (08:35 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 12 Jan 2012 13:35:39 +0000 (08:35 -0500)
xonstat/views/submission.py

index bbdac59ce4cc0c892a75eca12e9e70127b48145d..be7e6b544e990fb38707ac244a1c8faa6f2924bb 100755 (executable)
@@ -296,7 +296,7 @@ def get_or_create_player(session=None, hashkey=None, nick=None):
     nick - nick of the player (in case of a first time create)\r
     """\r
     # if we have a bot\r
-    if re.search('^bot#\d+$', hashkey):\r
+    if re.search('^bot#\d+$', hashkey) or re.search('^bot#\d+#', hashkey):\r
         player = session.query(Player).filter_by(player_id=1).one()\r
     # if we have an untracked player\r
     elif re.search('^player#\d+$', hashkey):\r