projects
/
xonotic
/
xonstat.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54fdee0
)
Check for new-style bot hashkeys too.
author
Ant Zucaro <azucaro@gmail.com>
Thu, 12 Jan 2012 13:35:39 +0000
(08:35 -0500)
committer
Ant Zucaro <azucaro@gmail.com>
Thu, 12 Jan 2012 13:35:39 +0000
(08:35 -0500)
xonstat/views/submission.py
patch
|
blob
|
history
diff --git
a/xonstat/views/submission.py
b/xonstat/views/submission.py
index bbdac59ce4cc0c892a75eca12e9e70127b48145d..be7e6b544e990fb38707ac244a1c8faa6f2924bb 100755
(executable)
--- 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)
\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