summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-12-06 00:16:20 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-12-06 00:16:20 +0100
commitb747e65de17eb65f0390731371becbe3a958a3ce (patch)
tree0f2ee644001bb90dee2a0cdf31ba498c8506b741 /src
parent6d6b403032a8768c63b4105e592116244b614954 (diff)
add install script and unit file
reformat sources
Diffstat (limited to 'src')
-rw-r--r--src/jwebmail/__init__.py8
1 files changed, 6 insertions, 2 deletions
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):