mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Don't surround search queries with parentheses unneccessarily
This commit is contained in:
parent
3d26cb7c30
commit
241b2a4841
@ -615,7 +615,7 @@ class ResultCache(SearchQueryParser):
|
||||
q = self.search_restriction
|
||||
else:
|
||||
q = query
|
||||
if not ignore_search_restriction:
|
||||
if not ignore_search_restriction and self.search_restriction:
|
||||
q = u'%s (%s)' % (self.search_restriction, query)
|
||||
if not q:
|
||||
if return_matches:
|
||||
|
Loading…
x
Reference in New Issue
Block a user