mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
I so wish English had no plural forms. What're they good for anyway?
This commit is contained in:
commit
a5da02be3b
@ -779,8 +779,10 @@ class OnDeviceSearch(SearchQueryParser): # {{{
|
||||
'title' : lambda x : getattr(x, 'title').lower(),
|
||||
'author': 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(),
|
||||
}
|
||||
for x in ('author', 'format'):
|
||||
q[x+'s'] = q[x]
|
||||
for index, row in enumerate(self.model.db):
|
||||
for locvalue in locations:
|
||||
accessor = q[locvalue]
|
||||
|
Loading…
x
Reference in New Issue
Block a user