forked from 0x2620/pandora
use Unicode Character 'MULTIPLICATION SIGN' (U+00D7) for screen and window size, fixes #909
This commit is contained in:
parent
19f4b3d1d3
commit
b5eda32bbd
1 changed files with 2 additions and 2 deletions
|
@ -112,10 +112,10 @@ class SessionData(models.Model):
|
||||||
data.info = json.loads(request.POST.get('data', '{}'))
|
data.info = json.loads(request.POST.get('data', '{}'))
|
||||||
screen = data.info.get('screen', {})
|
screen = data.info.get('screen', {})
|
||||||
if screen and 'height' in screen and 'width' in 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', {})
|
window = data.info.get('window', {})
|
||||||
if window and 'outerHeight' in window and 'outerWidth' in 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:
|
if not data.timesseen:
|
||||||
data.timesseen = 0
|
data.timesseen = 0
|
||||||
data.timesseen += 1
|
data.timesseen += 1
|
||||||
|
|
Loading…
Reference in a new issue