mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
add the ability to skip cards for shared decks
This commit is contained in:
parent
4539ca2b73
commit
8bb26aaf74
1 changed files with 3 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue