fix typo error, fixes #5

This commit is contained in:
Alex Yatskov 2017-03-12 09:43:47 -07:00
parent ac5180dc93
commit d78b8e93d4

View File

@ -474,7 +474,7 @@ class AnkiConnect:
results = []
for note in notes:
params = AnkiNoteParams(note)
if note.validate():
if params.validate():
results.append(self.anki.addNote(params))
else:
results.append(None)