Merge pull request #163 from snoyes/makeTagsOptional
Make tags optional when adding notes
This commit is contained in:
commit
457e76e720
@ -198,6 +198,7 @@ class AnkiConnect:
|
|||||||
|
|
||||||
ankiNote = anki.notes.Note(collection, model)
|
ankiNote = anki.notes.Note(collection, model)
|
||||||
ankiNote.model()['did'] = deck['id']
|
ankiNote.model()['did'] = deck['id']
|
||||||
|
if 'tags' in note:
|
||||||
ankiNote.tags = note['tags']
|
ankiNote.tags = note['tags']
|
||||||
|
|
||||||
for name, value in note['fields'].items():
|
for name, value in note['fields'].items():
|
||||||
|
Loading…
Reference in New Issue
Block a user