we must bump usn when importing anki1 dconf

This commit is contained in:
Damien Elmes 2012-03-08 08:25:05 +09:00
parent c92ab5dd19
commit 88b2b3ab85

View file

@ -36,6 +36,7 @@ class Anki1Importer(Anki2Importer):
id = self.col.decks.confId(self.deckPrefix) id = self.col.decks.confId(self.deckPrefix)
conf['id'] = id conf['id'] = id
conf['name'] = self.deckPrefix conf['name'] = self.deckPrefix
conf['usn'] = self.col.usn()
self.col.decks.updateConf(conf) self.col.decks.updateConf(conf)
did = self.col.decks.id(self.deckPrefix) did = self.col.decks.id(self.deckPrefix)
d = self.col.decks.get(did) d = self.col.decks.get(did)