This commit is contained in:
Kovid Goyal 2014-11-09 21:38:23 +05:30
parent b127f0b3f9
commit 5198962763

View File

@ -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):