bugfix
authorRadek Czajka <rczajka@rczajka.pl>
Thu, 4 Jun 2020 10:22:38 +0000 (12:22 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Thu, 4 Jun 2020 10:22:38 +0000 (12:22 +0200)
src/youtube/management/commands/youtube.py

index 4277818..fd50e0c 100644 (file)
@@ -12,7 +12,7 @@ class Command(BaseCommand):
 
     def handle(self, *args, **options):
         for audiobook in (
-            Audiobook.objects.filter(status=status.QUEUED)
+            Audiobook.objects.filter(youtube_status=status.QUEUED)
             .exclude(youtube_queued=None)
             .order_by("youtube_queued")[: options["limit"]]
         ):