gams / openkongqi

Outdoor air quality data
Apache License 2.0
3 stars 6 forks source link

Scheduling dict utils #5

Closed hrbonz closed 8 years ago

hrbonz commented 8 years ago

Instead of building the scheduling dict by hand in celeryconfig.py, we should be able to call a util get_schedule that will return a copy of the dict.

eddowh commented 8 years ago

Circular import:

>>> from openkongqi.utils import get_schedule
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "openkongqi/utils.py", line 11, in <module>
    from .source import get_sources
  File "openkongqi/source/__init__.py", line 3, in <module>
    from ..conf import settings
  File "openkongqi/conf.py", line 18, in <module>
    from .utils import load_tree, dig_loader
ImportError: cannot import name load_tree

Do you want to instead put this function in the root utils folder?

hrbonz commented 8 years ago

Put it in openkongqi.celery