Not exactly using it. remove for now

This commit is contained in:
Ruben van Staveren 2022-03-10 14:32:36 +01:00
parent bd12b2a18a
commit 7c7734c996
Signed by: ruben
GPG Key ID: 886F6BECD477A93F

View File

@ -26,15 +26,11 @@ def untaint(pattern, string):
raise ValueError(f'"{string}" is tainted')
def create_app(config=None):
def create_app():
app = Flask(__name__, instance_relative_config=True)
if config is None:
# load the instance config, if it exists, when not testing
app.config.from_pyfile('config.py', silent=True)
else:
# load the test config if passed in
app.config.from_pyfile(config, silent=True)
# load the instance config, if it exists, when not testing
app.config.from_pyfile('config.py', silent=True)
@auth.verify_password
def verify_password(username, password):