Make tags optional when adding notes
This commit is contained in:
parent
e01544a538
commit
0f9408730f
@ -197,6 +197,7 @@ class AnkiConnect:
|
||||
|
||||
ankiNote = anki.notes.Note(collection, model)
|
||||
ankiNote.model()['did'] = deck['id']
|
||||
if 'tags' in note:
|
||||
ankiNote.tags = note['tags']
|
||||
|
||||
for name, value in note['fields'].items():
|
||||
|
Loading…
Reference in New Issue
Block a user