we need to clear out std models on export or we end up renaming

and the rename affects the exporting deck as well
This commit is contained in:
Damien Elmes 2013-10-06 09:45:38 +09:00
parent 7aee582a58
commit bc96a00fd2

View File

@ -152,7 +152,8 @@ class AnkiExporter(Exporter):
else:
# need to reset card state
self.dst.sched.resetCards(cids)
# models
# models - start with zero
self.dst.models.models = {}
for m in self.src.models.all():
if int(m['id']) in mids:
self.dst.models.update(m)