cardIds return cids if it is set

This commit is contained in:
Arthur Milchior 2020-02-08 22:13:25 -08:00
parent 9fdc885d82
commit c02ff8593a

View file

@ -73,7 +73,9 @@ class Exporter:
return s return s
def cardIds(self) -> Any: 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") cids = self.col.db.list("select id from cards")
else: else:
cids = self.col.decks.cids(self.did, children=True) cids = self.col.decks.cids(self.did, children=True)