From edbde7327bd72a8542b3b0c32bf44ede80c036a6 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 31 May 2017 15:32:14 +0200 Subject: Updated comments. --- src/web/views/bookmark.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit