From e251900965a4dd2913a28a103fee07697adbb5d4 Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 1 Jun 2021 14:15:51 +0200 Subject: [PATCH] add config option to create_app --- ITPlanning/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ITPlanning/app.py b/ITPlanning/app.py index a3fd583..9327e3c 100644 --- a/ITPlanning/app.py +++ b/ITPlanning/app.py @@ -11,10 +11,11 @@ from ITPlanning.frontend import frontend logger = logging.getLogger("ITPlanning") -def create_app(): +def create_app(config): """Flask app creation""" app = Flask(__name__, static_folder="static", template_folder="view") - config = IniConfig() + if not config: + config = IniConfig() app.config.from_object(config) # set logger