fix normalization in normal import

This commit is contained in:
Damien Elmes 2017-09-30 19:29:33 +10:00
parent fad6b244cd
commit d0a9a87095

View File

@ -25,7 +25,7 @@ class AnkiPackageImporter(Anki2Importer):
if os.path.commonprefix([path, dir]) != dir:
raise Exception("Invalid file")
self.nameToNum[v] = unicodedata.normalize("NFC", k)
self.nameToNum[unicodedata.normalize("NFC",v)] = k
# run anki2 importer
Anki2Importer.run(self)
# import static media