From: Ant Zucaro Date: Thu, 12 Jan 2012 13:35:39 +0000 (-0500) Subject: Check for new-style bot hashkeys too. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ae4045ec5febdac04be3bb00f152fb0ff9333af7;p=xonotic%2Fxonstat.git Check for new-style bot hashkeys too. --- diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index bbdac59..be7e6b5 100755 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -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) """ # if we have a bot - if re.search('^bot#\d+$', hashkey): + if re.search('^bot#\d+$', hashkey) or re.search('^bot#\d+#', hashkey): player = session.query(Player).filter_by(player_id=1).one() # if we have an untracked player elif re.search('^player#\d+$', hashkey):