Merge pull request #263 from Arthur-Milchior/exporter

Using cardIds in AnkiExporter
This commit is contained in:
Damien Elmes 2018-11-27 08:12:58 +10:00 committed by GitHub
commit d58dcd7d2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = []