fix flask config

This commit is contained in:
Kyle Gabriel 2019-03-03 00:32:45 -05:00
parent f1b2394f03
commit 841cceaf3f

View file

@ -25,22 +25,7 @@ gateway_locations = [
bing_api_key = ''
def config_app(app, **kwargs):
"""Flask app configuration
Parameters
----------
app: Flask app
debug: optional, default=False
Returns
-------
app: Flask app
"""
if kwargs.get('debug', False):
app.server.debug = True
def config_app(app):
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{db}'.format(db=path_db)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False