From 112b287548959d8b1724ec12de09ed3dbac0267f Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Mon, 26 Nov 2018 10:47:26 +0100 Subject: [PATCH] Using cardIds in AnkiExporter --- anki/exporting.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/anki/exporting.py b/anki/exporting.py index f5b04f82f..1d5772ae9 100644 --- a/anki/exporting.py +++ b/anki/exporting.py @@ -125,10 +125,7 @@ class AnkiExporter(Exporter): self.dst = Collection(path) self.src = self.col # find cards - if not self.did: - cids = self.src.db.list("select id from cards") - else: - cids = self.src.decks.cids(self.did, children=True) + cids = self.cardIds() # copy cards, noting used nids nids = {} data = []