mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
when copying a model over in import, make sure we flag it for sync
This commit is contained in:
parent
ea57f32939
commit
322a2884f9
1 changed files with 2 additions and 0 deletions
|
@ -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?
|
||||||
|
|
Loading…
Reference in a new issue