inverse if/else in deckIds
This commit is contained in:
parent
c02ff8593a
commit
d48111af68
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user