mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Bug #1909442: saved searches don't work in the device view
This commit is contained in:
parent
94d68db7af
commit
d61540d065
@ -1221,7 +1221,8 @@ class OnDeviceSearch(SearchQueryParser): # {{{
|
|||||||
'formats',
|
'formats',
|
||||||
'title',
|
'title',
|
||||||
'inlibrary',
|
'inlibrary',
|
||||||
'tags'
|
'tags',
|
||||||
|
'search'
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, model):
|
def __init__(self, model):
|
||||||
@ -1252,7 +1253,7 @@ class OnDeviceSearch(SearchQueryParser): # {{{
|
|||||||
if location not in self.USABLE_LOCATIONS:
|
if location not in self.USABLE_LOCATIONS:
|
||||||
return set()
|
return set()
|
||||||
matches = set()
|
matches = set()
|
||||||
all_locs = set(self.USABLE_LOCATIONS) - {'all', 'tags'}
|
all_locs = set(self.USABLE_LOCATIONS) - {'all', 'tags', 'search'}
|
||||||
locations = all_locs if location == 'all' else [location]
|
locations = all_locs if location == 'all' else [location]
|
||||||
q = {
|
q = {
|
||||||
'title' : lambda x : getattr(x, 'title').lower(),
|
'title' : lambda x : getattr(x, 'title').lower(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user