mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
import deck conf
This commit is contained in:
parent
e10e4aed1d
commit
5c56de0e73
1 changed files with 6 additions and 0 deletions
|
@ -176,6 +176,12 @@ class Anki2Importer(Importer):
|
|||
name += "::" + name
|
||||
# create in local
|
||||
newid = self.dst.decks.id(name)
|
||||
# pull conf over
|
||||
if 'conf' in g and g['conf'] != 1:
|
||||
self.dst.decks.updateConf(self.src.decks.getConf(g['conf']))
|
||||
g2 = self.dst.decks.get(newid)
|
||||
g2['conf'] = g['conf']
|
||||
self.dst.decks.save(g2)
|
||||
# add to deck map and return
|
||||
self._decks[did] = newid
|
||||
return newid
|
||||
|
|
Loading…
Reference in a new issue