mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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:
parent
7aee582a58
commit
bc96a00fd2
1 changed files with 2 additions and 1 deletions
|
@ -152,7 +152,8 @@ class AnkiExporter(Exporter):
|
||||||
else:
|
else:
|
||||||
# need to reset card state
|
# need to reset card state
|
||||||
self.dst.sched.resetCards(cids)
|
self.dst.sched.resetCards(cids)
|
||||||
# models
|
# models - start with zero
|
||||||
|
self.dst.models.models = {}
|
||||||
for m in self.src.models.all():
|
for m in self.src.models.all():
|
||||||
if int(m['id']) in mids:
|
if int(m['id']) in mids:
|
||||||
self.dst.models.update(m)
|
self.dst.models.update(m)
|
||||||
|
|
Loading…
Reference in a new issue