From 04e51c8d3cbc2c00b626bd87751cce8c0eeccb3a Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Mon, 12 Oct 2020 12:46:42 +0800 Subject: [PATCH] fix a bug --- fir_ser/api/utils/storage/caches.py | 4 ---- fir_ser/api/views/__init__.py | 12 ++++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) 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