diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-12 11:56:54 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-12 11:56:54 +0100 |
commit | 47b43e85d46215540917b0029481d1ae9af203ac (patch) | |
tree | 57fedf59993e04c32c3fa55864410d5b23ef6ba6 | |
parent | Simplified deployment section. (diff) | |
download | newspipe-47b43e85d46215540917b0029481d1ae9af203ac.tar.gz newspipe-47b43e85d46215540917b0029481d1ae9af203ac.tar.bz2 newspipe-47b43e85d46215540917b0029481d1ae9af203ac.zip |
get the search param filters
-rw-r--r-- | newspipe/web/views/home.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |