mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
inverse if/else in deckIds
This commit is contained in:
parent
c02ff8593a
commit
d48111af68
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue