mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix normalization in normal import
This commit is contained in:
parent
fad6b244cd
commit
d0a9a87095
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class AnkiPackageImporter(Anki2Importer):
|
||||||
if os.path.commonprefix([path, dir]) != dir:
|
if os.path.commonprefix([path, dir]) != dir:
|
||||||
raise Exception("Invalid file")
|
raise Exception("Invalid file")
|
||||||
|
|
||||||
self.nameToNum[v] = unicodedata.normalize("NFC", k)
|
self.nameToNum[unicodedata.normalize("NFC",v)] = k
|
||||||
# run anki2 importer
|
# run anki2 importer
|
||||||
Anki2Importer.run(self)
|
Anki2Importer.run(self)
|
||||||
# import static media
|
# import static media
|
||||||
|
|
Loading…
Reference in a new issue