diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index 40a811f37..a454ed370 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -170,10 +170,10 @@ class AnkiExporter(Exporter): Exporter.__init__(self, col) def deckIds(self) -> List[int]: - if not self.did: - return [] - else: + if self.did: return [self.did] + [x[1] for x in self.src.decks.children(self.did)] + else: + return [] def exportInto(self, path: str) -> None: # sched info+v2 scheduler not compatible w/ older clients