make sure we set usn when pulling in dconf from apkg

This commit is contained in:
Damien Elmes 2014-10-08 12:54:30 +09:00
parent 9eaacf8977
commit 47c3bb0796

View File

@ -231,7 +231,9 @@ class Anki2Importer(Importer):
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']))
conf = self.src.decks.getConf(g['conf'])
self.dst.decks.save(conf)
self.dst.decks.updateConf(conf)
g2 = self.dst.decks.get(newid)
g2['conf'] = g['conf']
self.dst.decks.save(g2)