(podcast_ids, num_groups)
return actions, podcast
Task to merge some podcasts
Task to merge some podcasts
Task to merge some podcasts
def merge_podcasts(podcast_ids, num_groups):
    """Task to merge some podcasts"""

    logger.info("merging podcast ids %s", podcast_ids)

    podcasts = list(Podcast.objects.filter(id__in=podcast_ids))

    logger.info("merging podcasts %s", podcasts)

    actions = Counter()

    pm = PodcastMerger(podcasts, actions, num_groups)
    podcast = pm.merge()

    logger.info("merging result: %s", actions)

    return actions, podcast
def merge_podcasts ( podcast_ids , num_groups ) : logger . info ( "merging podcast ids %s" , podcast_ids ) podcasts = list ( Podcast . objects . filter ( id__in = podcast_ids ) ) logger . info ( "merging podcasts %s" , podcasts ) actions = Counter ( ) pm = PodcastMerger ( podcasts , actions , num_groups ) podcast = pm . merge ( ) logger . info ( "merging result: %s" , actions ) return actions , podcast