From b747e65de17eb65f0390731371becbe3a958a3ce Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Wed, 6 Dec 2023 00:16:20 +0100 Subject: add install script and unit file reformat sources --- src/jwebmail/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/jwebmail/__init__.py') diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py index 26d6ffc..e1afe82 100644 --- a/src/jwebmail/__init__.py +++ b/src/jwebmail/__init__.py @@ -3,11 +3,11 @@ import pwd import sys from os import environ -from werkzeug.middleware.proxy_fix import ProxyFix from flask import Flask, g from flask_babel import Babel, get_locale from flask_login import LoginManager, login_required from jinja2 import ChainableUndefined +from werkzeug.middleware.proxy_fix import ProxyFix from .css import compile_css_command from .read_mails import load_user @@ -82,7 +82,11 @@ def create_app(): @app.context_processor def inject_version(): - return {"version": __version__, "get_locale": get_locale, "format_mail": format_mail} + return { + "version": __version__, + "get_locale": get_locale, + "format_mail": format_mail, + } @app.url_defaults def add_language_code(endpoint, values): -- cgit v1.2.3