From 47b43e85d46215540917b0029481d1ae9af203ac Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 12 Mar 2020 11:56:54 +0100 Subject: get the search param filters --- newspipe/web/views/home.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newspipe/web/views/home.py b/newspipe/web/views/home.py index 1699f106..0368c11f 100644 --- a/newspipe/web/views/home.py +++ b/newspipe/web/views/home.py @@ -34,6 +34,8 @@ logger = logging.getLogger(__name__) def home(): """Displays the home page of the connected user. """ + filters = _get_filters(request.args) + art_contr = ArticleController(current_user.id) unread = art_contr.count_by_feed(readed=False) @@ -51,7 +53,6 @@ def home(): liked = int(request.args.get("liked", 0)) == 1 limit = request.args.get("limit", 1000) - filters = {} if filter_ in ["read", "unread"]: filters["readed"] = filter_ == "read" if feed_id: -- cgit