From 023618f5560a63eab94927f1c361f587fd1b2873 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 25 Jul 2024 14:52:58 -0500 Subject: Fix typing and linting errors. --- uploader/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uploader/__init__.py') 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="/") -- cgit v1.2.3