# -*- coding: utf-8 -*-

from datetime import timedelta

from .source import get_sources


def get_schedule(_sched):
    """Get celery schedule.
    """
    dyn_schedule = dict()
    for source in get_sources():
        dyn_schedule[source['name']] = {
            'task': 'openkongqi.tasks.scrape',
            'schedule': timedelta(_sched),
            'args': (source['name'], )
        }
    return dyn_schedule

@@ -321,25 +321,14 @@
 e': 
-timedelta(
 _sched
-)
 ,%0A  

fix new scheduling