Remove first APScheduler tests.

This commit is contained in:
Patrick Jentsch
2019-07-11 15:22:33 +02:00
parent 0266886874
commit c5422638a6
6 changed files with 2 additions and 80 deletions

View File

@ -1,4 +1,3 @@
from apscheduler.schedulers.background import BackgroundScheduler
from config import config
from flask import Flask
from flask_login import LoginManager
@ -13,8 +12,6 @@ login_manager.login_view = 'auth.login'
mail = Mail()
background_scheduler = BackgroundScheduler()
def create_app(config_name):
app = Flask(__name__)
@ -31,9 +28,4 @@ def create_app(config_name):
from .main import main as main_blueprint
app.register_blueprint(main_blueprint)
from .scheduler import scheduler as scheduler_blueprint
app.register_blueprint(scheduler_blueprint, url_prefix='/scheduler')
background_scheduler.start()
return app