]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Check nick uniqueness before storing.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 29 Sep 2012 13:34:25 +0000 (09:34 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 29 Sep 2012 13:34:25 +0000 (09:34 -0400)
xonstat/views/submission.py

index 95c83738df4384b438dbbca87532aec5a922d7d0..17381ef7f85d911196b1e84ce7dbf90438190f4d 100644 (file)
@@ -165,7 +165,7 @@ def register_new_nick(session, player, new_nick):
         if not re.search('^Anonymous Player #\d+$', player.nick):
             player_nick = PlayerNick()
             player_nick.player_id = player.player_id
-            player_nick.stripped_nick = player.stripped_nick
+            player_nick.stripped_nick = stripped_nick
             player_nick.nick = player.nick
             session.add(player_nick)