Esempio n. 1
0
    def handle(self, *args, **options):

        silent = options.get("silent")

        podcasts = Podcast.objects.all()
        total = podcasts.count()

        for n, podcast in enumerate(podcasts):
            update_podcast_subscribers.delay(podcast.get_id())

            if not silent:
                progress(n, total)
Esempio n. 2
0
    def handle(self, *args, **options):

        silent = options.get('silent')

        podcasts = Podcast.objects.all()
        total = podcasts.count_fast()

        for n, podcast in enumerate(podcasts):
            update_podcast_subscribers.delay(podcast.get_id())

            if not silent:
                progress(n, total)