fixed inability to import v1 into v1

https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/116
This commit is contained in:
Damien Elmes 2021-07-08 10:31:18 +10:00
parent c322f68ab8
commit 00f5d9ff96

View file

@ -43,7 +43,7 @@ class AnkiPackageImporter(Anki2Importer):
self.nameToNum[unicodedata.normalize("NFC", v)] = k
# run anki2 importer
Anki2Importer.run(self)
Anki2Importer.run(self, importing_v2=suffix == ".anki21")
# import static media
for file, c in list(self.nameToNum.items()):
if not file.startswith("_") and not file.startswith("latex-"):