提交 a7e151b9 编写于 作者: T tomtao 提交者: Gitee

复原application的init文件

上级 29f578f2
...@@ -7,7 +7,6 @@ import threading ...@@ -7,7 +7,6 @@ import threading
from flask import Flask from flask import Flask
from flask_session import Session from flask_session import Session
from flask_apscheduler import APScheduler from flask_apscheduler import APScheduler
from apscheduler.schedulers.background import BackgroundScheduler
from packageship import system_config from packageship import system_config
from packageship.application.settings import Config from packageship.application.settings import Config
from packageship.libs.log import setup_log from packageship.libs.log import setup_log
...@@ -55,7 +54,7 @@ def init_app(operation): ...@@ -55,7 +54,7 @@ def init_app(operation):
app.config.from_object(Config) app.config.from_object(Config)
# Register a scheduled task # Register a scheduled task
scheduler = APScheduler(scheduler=BackgroundScheduler(timezone='Asia/Shanghai')) scheduler = APScheduler()
scheduler.init_app(app) scheduler.init_app(app)
scheduler.start() scheduler.start()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册