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']
|
||||
|
||||
for name, value in note['fields'].items():
|
||||
if name in ankiNote:
|
||||
ankiNote[name] = value
|
||||
for ankiName in ankiNote.keys():
|
||||
if name.lower() == ankiName.lower():
|
||||
ankiNote[ankiName] = value
|
||||
break
|
||||
|
||||
allowDuplicate = False
|
||||
duplicateScope = None
|
||||
|
Loading…
Reference in New Issue
Block a user