mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
deckIds return deck of selected cards
This commit is contained in:
parent
e70a317ac5
commit
b5fed631d5
1 changed files with 3 additions and 1 deletions
|
@ -170,7 +170,9 @@ class AnkiExporter(Exporter):
|
||||||
Exporter.__init__(self, col)
|
Exporter.__init__(self, col)
|
||||||
|
|
||||||
def deckIds(self) -> List[int]:
|
def deckIds(self) -> List[int]:
|
||||||
if self.did:
|
if self.cids:
|
||||||
|
return self.col.decks.for_card_ids(self.cids)
|
||||||
|
elif self.did:
|
||||||
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:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Reference in a new issue