fix incorrect variable usage

This commit is contained in:
Alex Yatskov 2018-05-06 13:24:40 -07:00
parent 6d61af3386
commit 4173f4e5fe

View File

@ -538,7 +538,7 @@ class AnkiConnect:
return False return False
try: try:
return bool(self.createNote(note)) return bool(self.createNote(params))
except: except:
return False return False
@ -1139,7 +1139,7 @@ class AnkiConnect:
results = [] results = []
for note in notes: for note in notes:
try: try:
results.append(self.addNote(params)) results.append(self.addNote(note))
except Exception: except Exception:
results.append(None) results.append(None)
@ -1150,7 +1150,7 @@ class AnkiConnect:
def canAddNotes(self, notes): def canAddNotes(self, notes):
results = [] results = []
for note in notes: for note in notes:
results.append(self.canAddNote(params)) results.append(self.canAddNote(note))
return results return results