This commit is contained in:
j 2012-06-10 12:22:45 +02:00
parent 71fdb6f8aa
commit e63c698b5d

View file

@ -110,7 +110,7 @@ class SessionData(models.Model):
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 = '%sx%s' % (screen['width'], screen['height'])
window = data.info.get('window', {}) window = data.info.get('window', {})
if window '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 = '%sx%s' % (window['outerWidth'], window['outerHeight'])
if not data.timesseen: if not data.timesseen:
data.timesseen = 0 data.timesseen = 0