From 444ec48edc2323d82818195709bce66db7b1ef8b Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 10 Sep 2015 14:20:14 +0300 Subject: Fix stats session KeyError --- servo/views/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servo') diff --git a/servo/views/stats.py b/servo/views/stats.py index 0822373..9b79603 100644 --- a/servo/views/stats.py +++ b/servo/views/stats.py @@ -112,7 +112,7 @@ def data(request, query): report, what = query.split('/') locations = request.user.locations - params = request.session['stats_filter'] + params = request.session.get('stats_filter') timescale = params.get('timescale', default_timescale) location = params.get('location', request.user.location) -- cgit v1.2.3