mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
cardIds return cids if it is set
This commit is contained in:
parent
9fdc885d82
commit
c02ff8593a
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ class Exporter:
|
|||
return s
|
||||
|
||||
def cardIds(self) -> Any:
|
||||
if not self.did:
|
||||
if self.cids is not None:
|
||||
cids = self.cids
|
||||
elif not self.did:
|
||||
cids = self.col.db.list("select id from cards")
|
||||
else:
|
||||
cids = self.col.decks.cids(self.did, children=True)
|
||||
|
|
Loading…
Reference in a new issue