mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 03:53:51 +02:00
Fix exception in device search
This commit is contained in:
parent
e4619e969c
commit
a74df47c14
1 changed files with 3 additions and 1 deletions
|
|
@ -778,8 +778,10 @@ def get_matches(self, location, query):
|
|||
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…
Reference in a new issue