From 8bb26aaf74dfdea054bb8d55d60a4b75fa6e834b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 22 Oct 2011 00:05:09 +0900 Subject: [PATCH] add the ability to skip cards for shared decks --- anki/importing/anki2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/anki/importing/anki2.py b/anki/importing/anki2.py index d583a7728..33a2bbe6c 100644 --- a/anki/importing/anki2.py +++ b/anki/importing/anki2.py @@ -21,6 +21,7 @@ class Anki2Importer(Importer): needMapper = False groupPrefix = None + needCards = True def run(self, media=None): self.dst = self.deck @@ -141,6 +142,8 @@ class Anki2Importer(Importer): ###################################################################### def _importCards(self): + if not self.needCards: + return # build map of (guid, ord) -> cid self._cards = {} for guid, ord, cid in self.dst.db.execute(