1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-25 22:12:28 +02:00

Remove dot in blueprint name to prevent critical flask initialisation error.

This commit is contained in:
Dimitri Huisman
2021-07-20 11:22:02 +00:00
parent c5ff72d657
commit 06019452e3

View File

@@ -58,7 +58,7 @@ def build_app(path):
stable_version = os.getenv("stable_version", "master")
)
prefix_bp = flask.Blueprint(version, __name__)
prefix_bp = flask.Blueprint(version.replace(".", "_"), __name__)
prefix_bp.jinja_loader = jinja2.ChoiceLoader([
jinja2.FileSystemLoader(os.path.join(path, "templates")),
jinja2.FileSystemLoader(os.path.join(path, "flavors"))