mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Using cardIds in AnkiExporter
This commit is contained in:
parent
39b77951c3
commit
112b287548
1 changed files with 1 additions and 4 deletions
|
@ -125,10 +125,7 @@ class AnkiExporter(Exporter):
|
||||||
self.dst = Collection(path)
|
self.dst = Collection(path)
|
||||||
self.src = self.col
|
self.src = self.col
|
||||||
# find cards
|
# find cards
|
||||||
if not self.did:
|
cids = self.cardIds()
|
||||||
cids = self.src.db.list("select id from cards")
|
|
||||||
else:
|
|
||||||
cids = self.src.decks.cids(self.did, children=True)
|
|
||||||
# copy cards, noting used nids
|
# copy cards, noting used nids
|
||||||
nids = {}
|
nids = {}
|
||||||
data = []
|
data = []
|
||||||
|
|
Loading…
Reference in a new issue