From 3e76a7036951333b79c8dbc59d1b3bcfce502ccd Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Wed, 18 Sep 2024 02:05:41 +0200 Subject: [PATCH] fix template context passing to http request --- src/torrent_downloader/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent_downloader/app.py b/src/torrent_downloader/app.py index 8a67916..ab32515 100644 --- a/src/torrent_downloader/app.py +++ b/src/torrent_downloader/app.py @@ -31,7 +31,7 @@ def hx(func): response = templates.TemplateResponse( request, name="index.html", - context={"include_template": response.template.name}, + context=response.context | {"include_template": response.template.name}, status_code=200, ) return response