From d78b8e93d4375b552bee7c7623b2cbdd6d4a0c01 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 12 Mar 2017 09:43:47 -0700 Subject: [PATCH] fix typo error, fixes #5 --- AnkiConnect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnkiConnect.py b/AnkiConnect.py index fc306ab..274bc77 100644 --- a/AnkiConnect.py +++ b/AnkiConnect.py @@ -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)