mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
...
This commit is contained in:
parent
e8cc67b5c2
commit
7a9951020a
2 changed files with 2 additions and 2 deletions
|
|
@ -265,7 +265,7 @@ def test_searching(self): # {{{
|
|||
old = LibraryDatabase2(self.library_path)
|
||||
oldvals = {query:set(old.search_getting_ids(query, '')) for query in (
|
||||
# Date tests
|
||||
'date:9/6/2011', 'date:true', 'date:false', 'pubdate:9/2011',
|
||||
'date:9/6/2011', 'date:true', 'date:false', 'pubdate:1/9/2011',
|
||||
'#date:true', 'date:<100daysago', 'date:>9/6/2011',
|
||||
'#date:>9/1/2011', '#date:=2011',
|
||||
|
||||
|
|
|
|||
|
|
@ -703,7 +703,7 @@ def get_matches(self, location, query, candidates=None,
|
|||
query[1:1] in '=<>!':
|
||||
vf = lambda item, loc=fm['rec_index'], \
|
||||
ms=fm['is_multiple']['cache_to_list']:\
|
||||
len(item[loc].split(ms)) if item[loc] is not None else 0
|
||||
len(item[loc].split(ms)) if item[loc] is not None else 0
|
||||
return self.get_numeric_matches(location, query[1:],
|
||||
candidates, val_func=vf)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue