mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 14:35:30 +01:00
Add iterallids method to ResultCache
This commit is contained in:
parent
7fe122be68
commit
266d7c02be
1 changed files with 5 additions and 0 deletions
|
|
@ -176,6 +176,11 @@ def iterall(self):
|
|||
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…
Reference in a new issue