From: Ant Zucaro Date: Thu, 15 Dec 2011 02:35:21 +0000 (-0500) Subject: Store stripped_nick for pgstats. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=35ac2b21aa3200da2331d9acf47cd2be5eda02ba;p=xonotic%2Fxonstat.git Store stripped_nick for pgstats. --- diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index d610e42..9d82aa1 100755 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -357,6 +357,9 @@ def create_player_game_stat(session=None, player=None, if pgstat.nick == None: pgstat.nick = player.nick + # whichever nick we ended up with, strip it and store as the stripped_nick + pgstat.stripped_nick = qfont_decode(pgstat.nick) + # if the nick we end up with is different from the one in the # player record, change the nick to reflect the new value if pgstat.nick != player.nick and player.player_id > 2: