diff options
author | Frederick Muriuki Muriithi | 2024-07-25 14:52:58 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-07-25 14:52:58 -0500 |
commit | 023618f5560a63eab94927f1c361f587fd1b2873 (patch) | |
tree | bf072a1066208dff5e9bd008a9a78243bf6522cd /uploader | |
parent | 754e8f214b940e05298cb360ed829f5c685d55a5 (diff) | |
download | gn-uploader-023618f5560a63eab94927f1c361f587fd1b2873.tar.gz |
Fix typing and linting errors.
Diffstat (limited to 'uploader')
-rw-r--r-- | uploader/__init__.py | 2 |
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="/") |