when copying a model over in import, make sure we flag it for sync

This commit is contained in:
Damien Elmes 2012-11-29 03:17:12 +09:00
parent ea57f32939
commit 322a2884f9

View file

@ -154,6 +154,8 @@ class Anki2Importer(Importer):
# copy it over # copy it over
model = srcModel.copy() model = srcModel.copy()
model['id'] = mid model['id'] = mid
model['mod'] = intTime()
model['usn'] = self.col.usn()
self.dst.models.update(model) self.dst.models.update(model)
break break
# there's an existing model; do the schemas match? # there's an existing model; do the schemas match?