From 8117269fcc41862628995bde2d251d754c50a1f6 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Feb 2011 16:42:56 +0100 Subject: [PATCH] fix task --- pandora/archive/tasks.py | 2 +- pandora/item/views.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora/archive/tasks.py b/pandora/archive/tasks.py index 5645e7cc..d1973455 100644 --- a/pandora/archive/tasks.py +++ b/pandora/archive/tasks.py @@ -36,7 +36,7 @@ def get_or_create_file(volume, f): file.save() return file -def update_or_create_instance(i, volume, f): +def update_or_create_instance(volume, f): instance = models.Instance.objects.filter(file__oshash=f['oshash'], volume=f['volume']) if instance.count()>0: instance = instance[0] diff --git a/pandora/item/views.py b/pandora/item/views.py index ac942a8f..6a48b400 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -43,7 +43,6 @@ def _order_query(qs, sort, prefix='sort__'): sort.append({'operator': '-', 'key': 'year'}) sort.append({'operator': '+', 'key': 'title'}) - for e in sort: operator = e['operator'] if operator != '-':