()
Schedule podcasts for update that have not been updated for longest
Schedule podcasts for update that have not been updated for longest
Schedule podcasts for update that have not been updated for longest
def schedule_updates_longest_no_update():
    """Schedule podcasts for update that have not been updated for longest"""

    # max number of updates to schedule (one every 20s)
    max_updates = UPDATE_INTERVAL.total_seconds() / 10

    podcasts = Podcast.objects.order_by("last_update")[:max_updates]
    _schedule_updates(podcasts)
def schedule_updates_longest_no_update ( ) : # max number of updates to schedule (one every 20s) max_updates = UPDATE_INTERVAL . total_seconds ( ) / 10 podcasts = Podcast . objects . order_by ( "last_update" ) [ : max_updates ] _schedule_updates ( podcasts )