From c02ff8593a2faa7e3aa076ce0a262cd3dfde8b44 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Sat, 8 Feb 2020 22:13:25 -0800 Subject: [PATCH] cardIds return cids if it is set --- pylib/anki/exporting.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index d1f549bed..40a811f37 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -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)