aboutsummaryrefslogtreecommitdiff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-25 14:52:58 -0500
committerFrederick Muriuki Muriithi2024-07-25 14:52:58 -0500
commit023618f5560a63eab94927f1c361f587fd1b2873 (patch)
treebf072a1066208dff5e9bd008a9a78243bf6522cd /uploader
parent754e8f214b940e05298cb360ed829f5c685d55a5 (diff)
downloadgn-uploader-023618f5560a63eab94927f1c361f587fd1b2873.tar.gz
Fix typing and linting errors.
Diffstat (limited to 'uploader')
-rw-r--r--uploader/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py
index 3ee8aa0..e9875cf 100644
--- a/uploader/__init__.py
+++ b/uploader/__init__.py
@@ -34,7 +34,7 @@ def create_app():
app.config.from_envvar("QCAPP_SECRETS")
# setup jinja2 symbols
- app.jinja_env.globals.update(request_url=lambda : request.url)
+ app.add_template_global(lambda : request.url, name="request_url")
# setup blueprints
app.register_blueprint(base, url_prefix="/")