From ae4045ec5febdac04be3bb00f152fb0ff9333af7 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Thu, 12 Jan 2012 08:35:39 -0500 Subject: [PATCH] Check for new-style bot hashkeys too. --- xonstat/views/submission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.39.2