From b5eda32bbde479095dd889d4b466e2ebbc7e7fcb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 16 Jul 2013 11:37:11 +0000 Subject: [PATCH] use Unicode Character 'MULTIPLICATION SIGN' (U+00D7) for screen and window size, fixes #909 --- pandora/user/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/user/models.py b/pandora/user/models.py index de6ac0d8..f9e3e4cd 100644 --- a/pandora/user/models.py +++ b/pandora/user/models.py @@ -112,10 +112,10 @@ class SessionData(models.Model): data.info = json.loads(request.POST.get('data', '{}')) screen = data.info.get('screen', {}) if screen and 'height' in screen and 'width' in screen: - data.screensize = '%sx%s' % (screen['width'], screen['height']) + data.screensize = u'%s\xd7%s' % (screen['width'], screen['height']) window = data.info.get('window', {}) if window and 'outerHeight' in window and 'outerWidth' in window: - data.windowsize = '%sx%s' % (window['outerWidth'], window['outerHeight']) + data.windowsize = u'%s\xd7%s' % (window['outerWidth'], window['outerHeight']) if not data.timesseen: data.timesseen = 0 data.timesseen += 1