CONTENT_DIR must be string

This commit is contained in:
Yannik Schmidt
2020-08-28 21:30:42 +02:00
parent 2e0884e060
commit 85c6328fe8

View File

@@ -185,7 +185,7 @@ def content():
extraConfigDir = app.config[identifier + CONFIG_POSTFIX]
extraConfig = None
if extraConfigDir:
extraConfig = readJsonDir(os.path.join(app.config[CONTENT_DIR], extraConfigDir))
extraConfig = readJsonDir(os.path.join(app.config["CONTENT_DIR"], extraConfigDir))
markupText = flask.Markup(flask.render_template(app.config[identifier], extraConfig=extraConfig))
return flask.render_template("default_content.html", conf=app.config, markupText=markupText)