From 793ce4d33b44fe464a782c372432c1fa7da57caf Mon Sep 17 00:00:00 2001 From: Joachim Date: Wed, 8 Dec 2021 16:39:43 +0100 Subject: [PATCH] Remove query in view response --- bookwyrm/views/list.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/bookwyrm/views/list.py b/bookwyrm/views/list.py index a9e27f5d7..b29a5b133 100644 --- a/bookwyrm/views/list.py +++ b/bookwyrm/views/list.py @@ -222,8 +222,6 @@ class EmbedList(View): if list_key != embed_key: raise Http404() - query = request.GET.get("q") - # sort_by shall be "order" unless a valid alternative is given sort_by = request.GET.get("sort_by", "order") if sort_by not in ("order", "title", "rating"): @@ -262,7 +260,6 @@ class EmbedList(View): "page_range": paginated.get_elided_page_range( page.number, on_each_side=2, on_ends=1 ), - "query": query or "", } return TemplateResponse(request, "lists/embed-list.html", data)