aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/bookmark.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-31 15:32:14 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-31 15:32:14 +0200
commitedbde7327bd72a8542b3b0c32bf44ede80c036a6 (patch)
tree18a14163e4f52cc67cd2366e16c702b831a08aac /src/web/views/bookmark.py
parentImproved the bookmapks.list_ route. (diff)
downloadnewspipe-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.py4
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
bgstack15