Remove ugly workaround for scheduler function. Now the current app_context is used, instead of creating a new app instance.

This commit is contained in:
Patrick Jentsch
2019-08-20 15:57:58 +02:00
parent 5ff2ef9301
commit 6975076fc3
2 changed files with 69 additions and 80 deletions

View File

@ -40,13 +40,3 @@ def create_app(config_name):
app.register_blueprint(admin_blueprint, url_prefix='/admin')
return app
def create_minimal_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
config[config_name].init_app(app)
db.init_app(app)
return app