Fixing bug where fields can get out of sync with Anki
Former-commit-id: acea6620cbe5038aa56ad670b6af2afc2986967b
This commit is contained in:
parent
2d0782badf
commit
46be9cba8a
@ -49,7 +49,8 @@ class Anki:
|
|||||||
note.tags = tags
|
note.tags = tags
|
||||||
|
|
||||||
for name, value in fields.items():
|
for name, value in fields.items():
|
||||||
note[name] = value
|
if name in note:
|
||||||
|
note[name] = value
|
||||||
|
|
||||||
if not note.dupeOrEmpty():
|
if not note.dupeOrEmpty():
|
||||||
return note
|
return note
|
||||||
|
Loading…
Reference in New Issue
Block a user