inverse if/else in deckIds

This commit is contained in:
Arthur Milchior 2020-02-08 22:43:19 -08:00
parent c02ff8593a
commit d48111af68

View File

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