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