From 484377b8091179504b21b29be1de6925c70af4bd Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 4 Apr 2020 18:43:26 +1000 Subject: [PATCH] downgrade when writing dummy collection --- pylib/anki/exporting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index 568e86c8e..300d4c97b 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -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)