fix exporting bug

can't/shouldn't pop up confirmation message on export
This commit is contained in:
Damien Elmes 2020-05-15 11:03:34 +10:00
parent f1c5c88c10
commit 31480be5e7

View File

@ -226,6 +226,7 @@ class AnkiExporter(Exporter):
# need to reset card state
self.dst.sched.resetCards(cids)
# models - start with zero
self.dst.modSchema(check=False)
self.dst.models.remove_all_notetypes()
for m in self.src.models.all():
if int(m["id"]) in mids: