1

Fixing bug where fields can get out of sync with Anki

Former-commit-id: acea6620cbe5038aa56ad670b6af2afc2986967b
This commit is contained in:
Alex Yatskov 2015-02-16 19:27:27 +09:00
parent 2d0782badf
commit 46be9cba8a

View File

@ -49,7 +49,8 @@ class Anki:
note.tags = tags
for name, value in fields.items():
note[name] = value
if name in note:
note[name] = value
if not note.dupeOrEmpty():
return note