downgrade when writing dummy collection

This commit is contained in:
Damien Elmes 2020-04-04 18:43:26 +10:00
parent 0750ad5c62
commit 484377b809

View File

@ -376,7 +376,7 @@ class AnkiPackageExporter(AnkiExporter):
n[_("Front")] = "This file requires a newer version of Anki."
c.addNote(n)
c.save()
c.close()
c.close(downgrade=True)
zip.write(path, "collection.anki2")
os.unlink(path)