diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-05-31 15:32:14 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-05-31 15:32:14 +0200 |
commit | edbde7327bd72a8542b3b0c32bf44ede80c036a6 (patch) | |
tree | 18a14163e4f52cc67cd2366e16c702b831a08aac /src/web/views/bookmark.py | |
parent | Improved the bookmapks.list_ route. (diff) | |
download | newspipe-edbde7327bd72a8542b3b0c32bf44ede80c036a6.tar.gz newspipe-edbde7327bd72a8542b3b0c32bf44ede80c036a6.tar.bz2 newspipe-edbde7327bd72a8542b3b0c32bf44ede80c036a6.zip |
Updated comments.
Diffstat (limited to 'src/web/views/bookmark.py')
-rw-r--r-- | src/web/views/bookmark.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/views/bookmark.py b/src/web/views/bookmark.py index 127bb6a0..477ca5fc 100644 --- a/src/web/views/bookmark.py +++ b/src/web/views/bookmark.py @@ -69,11 +69,13 @@ def list_(per_page, status='all'): # query for the bookmarks of the authenticated user user_id = current_user.id if status == 'public': + # load public bookmarks only filters['shared'] = True elif status == 'private': + # load private bookmarks only filters['shared'] = False else: - # no filter + # no filter: load shared and public bookmarks pass if status == 'unread': filters['to_read'] = True |