From 35ac2b21aa3200da2331d9acf47cd2be5eda02ba Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Wed, 14 Dec 2011 21:35:21 -0500 Subject: [PATCH] Store stripped_nick for pgstats. --- xonstat/views/submission.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.39.2