import descriptions in parent decks

This commit is contained in:
Damien Elmes 2012-12-22 09:39:38 +09:00
parent cc9bbb2ab7
commit c6b0945af1

View File

@ -186,6 +186,14 @@ class Anki2Importer(Importer):
name = self.deckPrefix
if tmpname:
name += "::" + tmpname
# manually create any parents so we can pull in descriptions
head = ""
for parent in name.split("::")[:-1]:
if head:
head += "::"
head += parent
idInSrc = self.src.decks.id(head)
self._did(idInSrc)
# create in local
newid = self.dst.decks.id(name)
# pull conf over