mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -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)
|
Exporter.__init__(self, col)
|
||||||
|
|
||||||
def deckIds(self) -> List[int]:
|
def deckIds(self) -> List[int]:
|
||||||
if not self.did:
|
if self.did:
|
||||||
return []
|
|
||||||
else:
|
|
||||||
return [self.did] + [x[1] for x in self.src.decks.children(self.did)]
|
return [self.did] + [x[1] for x in self.src.decks.children(self.did)]
|
||||||
|
else:
|
||||||
|
return []
|
||||||
|
|
||||||
def exportInto(self, path: str) -> None:
|
def exportInto(self, path: str) -> None:
|
||||||
# sched info+v2 scheduler not compatible w/ older clients
|
# sched info+v2 scheduler not compatible w/ older clients
|
||||||
|
|
Loading…
Reference in a new issue