mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix exception in device search
This commit is contained in:
parent
e4619e969c
commit
a74df47c14
@ -778,8 +778,10 @@ class OnDeviceSearch(SearchQueryParser): # {{{
|
||||
q = {
|
||||
'title' : lambda x : getattr(x, 'title').lower(),
|
||||
'author': lambda x: ' & '.join(getattr(x, 'authors')).lower(),
|
||||
'authors': lambda x: ' & '.join(getattr(x, 'authors')).lower(),
|
||||
'collections':lambda x: ','.join(getattr(x, 'device_collections')).lower(),
|
||||
'format':lambda x: os.path.splitext(x.path)[1].lower()
|
||||
'format':lambda x: os.path.splitext(x.path)[1].lower(),
|
||||
'formats':lambda x: os.path.splitext(x.path)[1].lower()
|
||||
}
|
||||
for index, row in enumerate(self.model.db):
|
||||
for locvalue in locations:
|
||||
|
Loading…
x
Reference in New Issue
Block a user