mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Correctly parenthesize searches that are used to make search restrictions.
This commit is contained in:
parent
2053ffb22c
commit
8182deb97f
@ -783,7 +783,7 @@ class ResultCache(SearchQueryParser): # {{{
|
|||||||
else:
|
else:
|
||||||
q = query
|
q = query
|
||||||
if search_restriction:
|
if search_restriction:
|
||||||
q = u'%s (%s)' % (search_restriction, query)
|
q = u'(%s) and (%s)' % (search_restriction, query)
|
||||||
if not q:
|
if not q:
|
||||||
if set_restriction_count:
|
if set_restriction_count:
|
||||||
self.search_restriction_book_count = len(self._map)
|
self.search_restriction_book_count = len(self._map)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user