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