From bc96a00fd2da468cf1586e20a97c21d77c0cef45 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 6 Oct 2013 09:45:38 +0900 Subject: [PATCH] we need to clear out std models on export or we end up renaming and the rename affects the exporting deck as well --- anki/exporting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anki/exporting.py b/anki/exporting.py index 0d711d146..cc12e3d5a 100644 --- a/anki/exporting.py +++ b/anki/exporting.py @@ -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)