diff --git a/src/calibre/library/caches.py b/src/calibre/library/caches.py index 9ed150733a..3877314da9 100644 --- a/src/calibre/library/caches.py +++ b/src/calibre/library/caches.py @@ -171,6 +171,11 @@ class ResultCache(SearchQueryParser): for id in self._map_filtered: yield self._data[id] + def iterall(self): + for x in self._data: + if x is not None: + yield x + def universal_set(self): return set([i[0] for i in self._data if i is not None])