Update public source
This commit is contained in:
@@ -80,6 +80,7 @@ from logging_config import (
|
|||||||
LOG_FORMAT,
|
LOG_FORMAT,
|
||||||
UTCFormatter,
|
UTCFormatter,
|
||||||
)
|
)
|
||||||
|
from request_lifecycle import RequestLifecycleMiddleware
|
||||||
|
|
||||||
app = Flask(
|
app = Flask(
|
||||||
__name__,
|
__name__,
|
||||||
@@ -91,6 +92,11 @@ app = Flask(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
request_lifecycle = RequestLifecycleMiddleware(
|
||||||
|
app.wsgi_app
|
||||||
|
)
|
||||||
|
app.wsgi_app = request_lifecycle
|
||||||
|
|
||||||
app.add_template_filter(
|
app.add_template_filter(
|
||||||
format_report_datetime,
|
format_report_datetime,
|
||||||
"local_datetime"
|
"local_datetime"
|
||||||
|
|||||||
Reference in New Issue
Block a user