From 2d3e550b69843b46b994c8b269436d70ac825040 Mon Sep 17 00:00:00 2001 From: binaryatrocity Date: Mon, 17 Nov 2014 11:12:23 -0600 Subject: [PATCH 1/2] Update to MySQL-python 1.2.5 --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 886ce95..3ff4748 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ Flask-WTF==0.9.4 Jinja2==2.7.1 Mako==1.0.0 MarkupSafe==0.18 -MySQL-python==1.2.4 +MySQL-python==1.2.5 Pygments==1.6 SQLAlchemy==0.8.4 WTForms==1.0.5 @@ -29,7 +29,7 @@ pyparsing==2.0.2 python-crontab==1.8.1 python-dateutil==2.2 python-openid==2.2.5 -python-ts3==0.1 +#python-ts3==0.1 pytz==2014.4 requests==2.1.0 simplejson==3.3.1 From 71b12a38f41f8420ffac54035030e9c342b2f6bc Mon Sep 17 00:00:00 2001 From: binaryatrocity Date: Mon, 17 Nov 2014 11:13:16 -0600 Subject: [PATCH 2/2] Use unicode encoding for Steam usernames --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index 49d6bbb..a0baf7b 100644 --- a/app/views.py +++ b/app/views.py @@ -56,7 +56,7 @@ def create_or_login(resp): match = app.config['STEAM_ID_RE'].search(resp.identity_url) g.user = User.get_or_create(match.group(1)) steamdata = get_steam_userinfo(g.user.steam_id) - g.user.nickname = steamdata['personaname'] + g.user.nickname = steamdata['personaname'].encode('utf-8') g.user.avatar = steamdata['avatar'] db.session.commit() session['user_id'] = g.user.id