mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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)
|
||||
|
||||
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)]
|
||||
else:
|
||||
return []
|
||||
|
|
Loading…
Reference in a new issue