From 218c98fc7a383ad12f123d09012c26c20e3490db Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 30 Sep 2011 01:08:43 +0200 Subject: [PATCH] fold events --- pandora/event/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/event/views.py b/pandora/event/views.py index 17fc8bc6..95daa247 100644 --- a/pandora/event/views.py +++ b/pandora/event/views.py @@ -159,7 +159,7 @@ Positions data = json.loads(request.POST['data']) query = parse_query(data, request.user) - qs = query['qs'] + qs = query['qs'].distinct() if 'keys' in data: qs = qs[query['range'][0]:query['range'][1]] response['data']['items'] = [p.json(request.user) for p in qs]