Compare field names in a case-insensitive manner (#242)
This commit is contained in:
parent
9a18ae0b11
commit
2081330c35
@ -210,8 +210,10 @@ class AnkiConnect:
|
|||||||
ankiNote.tags = note['tags']
|
ankiNote.tags = note['tags']
|
||||||
|
|
||||||
for name, value in note['fields'].items():
|
for name, value in note['fields'].items():
|
||||||
if name in ankiNote:
|
for ankiName in ankiNote.keys():
|
||||||
ankiNote[name] = value
|
if name.lower() == ankiName.lower():
|
||||||
|
ankiNote[ankiName] = value
|
||||||
|
break
|
||||||
|
|
||||||
allowDuplicate = False
|
allowDuplicate = False
|
||||||
duplicateScope = None
|
duplicateScope = None
|
||||||
|
Loading…
Reference in New Issue
Block a user