From e63c698b5d4dec66df3a32094d353c6199abce0c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 10 Jun 2012 12:22:45 +0200 Subject: [PATCH] and and --- pandora/user/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/user/models.py b/pandora/user/models.py index 4a486d79a..1a0393977 100644 --- a/pandora/user/models.py +++ b/pandora/user/models.py @@ -110,7 +110,7 @@ class SessionData(models.Model): if screen and 'height' in screen and 'width' in screen: data.screensize = '%sx%s' % (screen['width'], screen['height']) 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']) if not data.timesseen: data.timesseen = 0