From 2e246dd06eb52f142c3e69136390755248f90fbb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 16 Feb 2015 16:02:18 +0000 Subject: [PATCH] cleanup --- pandora/item/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index a7b9d55c..accb2513 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -702,9 +702,7 @@ def lookup(request, data): i = None if 'id' in data: i = models.Item.objects.get(public_id=data['id']) - elif not filter(None, [d not in ('title', 'year', 'director') for d in data.keys()]): - key = data.keys()[0] - value = data[key] + elif not filter(None, [d not in ('title', 'year', 'director') for d in data.keys()]): qs = models.Item.objects.find({'query': { 'conditions': [ {'key': key, 'value': data[key], 'operator': '=='} for key in data