mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02: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:
|
||||
# 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)
|
||||
|
|
Loading…
Reference in a new issue