From 0cb9ebda1f530c8f19249d23615dd7a3a6fbc6f6 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 28 Apr 2013 20:42:43 +0000 Subject: [PATCH] fix ./manage.py extract_derivatives --- pandora/archive/management/commands/extract_derivatives.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/archive/management/commands/extract_derivatives.py b/pandora/archive/management/commands/extract_derivatives.py index 900f76af0..a6010cc63 100644 --- a/pandora/archive/management/commands/extract_derivatives.py +++ b/pandora/archive/management/commands/extract_derivatives.py @@ -23,6 +23,6 @@ class Command(BaseCommand): def handle(self, **options): for s in models.Stream.objects.filter(source=None): if options['forground']: - extract_derivatives(s.item.id, options['rebuild']) + extract_derivatives(s.file.id, options['rebuild']) else: - extract_derivatives.delay(s.item.id, options['rebuild']) + extract_derivatives.delay(s.file.id, options['rebuild'])