From b5b4afec5e89d907cffdfcd9c0560b6cb9c49504 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Feb 2011 16:45:12 +0100 Subject: [PATCH] fix task --- pandora/archive/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/tasks.py b/pandora/archive/tasks.py index d1973455..586bfaab 100644 --- a/pandora/archive/tasks.py +++ b/pandora/archive/tasks.py @@ -37,7 +37,7 @@ def get_or_create_file(volume, f): return file def update_or_create_instance(volume, f): - instance = models.Instance.objects.filter(file__oshash=f['oshash'], volume=f['volume']) + instance = models.Instance.objects.filter(file__oshash=f['oshash'], volume=volume) if instance.count()>0: instance = instance[0] updated = False