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
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)