aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/bookmark.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/web/views/bookmark.py b/src/web/views/bookmark.py
index 8736e1ca..69a094ac 100644
--- a/src/web/views/bookmark.py
+++ b/src/web/views/bookmark.py
@@ -58,6 +58,11 @@ def list_(per_page, status='all'):
tag = request.args.get('tag', None)
if tag:
filters['tags_proxy__contains'] = tag
+ query = request.args.get('query', None)
+ if query:
+ query = '%' + query + '%'
+ filters['__or__'] = {'title__ilike': query, 'description__ilike': query}
+
if current_user.is_authenticated:
# query for the bookmarks of the authenticated user
bgstack15