diff --git a/fir_ser/api/utils/storage/caches.py b/fir_ser/api/utils/storage/caches.py index 9479525..3d0234e 100644 --- a/fir_ser/api/utils/storage/caches.py +++ b/fir_ser/api/utils/storage/caches.py @@ -14,10 +14,6 @@ from api.utils.utils import file_format_path import logging logger = logging.getLogger(__file__) -try: - from api.utils.crontab import run -except Exception as e: - logger.error("import crontab.run failed Exception:%s" % (e)) def sync_download_times_by_app_id(app_ids): diff --git a/fir_ser/api/views/__init__.py b/fir_ser/api/views/__init__.py index e69de29..d58bcb5 100644 --- a/fir_ser/api/views/__init__.py +++ b/fir_ser/api/views/__init__.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python +# -*- coding:utf-8 -*- +# project: 10月 +# author: liuyu +# date: 2020/10/12 +import logging +logger = logging.getLogger(__file__) + +try: + from api.utils.crontab import run +except Exception as e: + logger.error("import crontab.run failed Exception:%s" % (e)) \ No newline at end of file