mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
b127f0b3f9
commit
5198962763
@ -1427,7 +1427,7 @@ class Cache(object):
|
||||
''' Return data suitable for use in :meth:`has_book`. This can be used for an
|
||||
implementation of :meth:`has_book` in a worker process without access to the
|
||||
db. '''
|
||||
return {icu_lower(title):book_id for book_id, title in self.fields['title'].table.book_col_map.itervalues()}
|
||||
return {icu_lower(title) for title in self.fields['title'].table.book_col_map.itervalues()}
|
||||
|
||||
@read_api
|
||||
def has_book(self, mi):
|
||||
|
Loading…
x
Reference in New Issue
Block a user