mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 08:36:07 +01:00
Don't surround search queries with parentheses unneccessarily
This commit is contained in:
parent
3d26cb7c30
commit
241b2a4841
1 changed files with 1 additions and 1 deletions
|
|
@ -615,7 +615,7 @@ def search(self, query, return_matches=False,
|
|||
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…
Reference in a new issue