mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add iterallids method to ResultCache
This commit is contained in:
parent
7fe122be68
commit
266d7c02be
@ -176,6 +176,11 @@ class ResultCache(SearchQueryParser):
|
||||
if x is not None:
|
||||
yield x
|
||||
|
||||
def iterallids(self):
|
||||
idx = self.FIELD_MAP['id']
|
||||
for x in self.iterall():
|
||||
yield x[idx]
|
||||
|
||||
def universal_set(self):
|
||||
return set([i[0] for i in self._data if i is not None])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user