From 47c3bb07961ec990a075f4053d66d91ebfced7f4 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 8 Oct 2014 12:54:30 +0900 Subject: [PATCH] make sure we set usn when pulling in dconf from apkg --- anki/importing/anki2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/anki/importing/anki2.py b/anki/importing/anki2.py index 01e3bb751..4c3c404c2 100644 --- a/anki/importing/anki2.py +++ b/anki/importing/anki2.py @@ -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)