From f73cf2397657dd63d6e55ececcfe3e506d0d3ff0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Apr 2022 08:18:43 +0530 Subject: [PATCH] update docstring --- src/calibre/library/caches.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/calibre/library/caches.py b/src/calibre/library/caches.py index ac13474c69..be4b24cf89 100644 --- a/src/calibre/library/caches.py +++ b/src/calibre/library/caches.py @@ -912,13 +912,12 @@ class ResultCache(SearchQueryParser): # {{{ def set_marked_ids(self, id_dict): ''' ids in id_dict are "marked". They can be searched for by - using the search term ``marked:true``. Pass in an empty dictionary or - set to clear marked ids. + using the search term ``marked:true`` or ``marked:value``. + Pass in an empty dictionary or set to clear marked ids. :param id_dict: Either a dictionary mapping ids to values or a set - of ids. In the latter case, the value is set to 'true' for all ids. If - a mapping is provided, then the search can be used to search for - particular values: ``marked:value`` + of ids. If a mapping is provided, then the search can be used to search + for particular values: ``marked:value`` ''' if not hasattr(id_dict, 'items'): # Simple list. Make it a dict of string 'true'