Merge pull request #65 from louietan/patch-1

Fix bug in "notesInfo"
This commit is contained in:
Alex Yatskov 2018-01-14 08:40:23 -08:00 committed by GitHub
commit 40b6e8c0a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -764,7 +764,7 @@ class AnkiBridge:
'fields': fields,
'modelName': model['name'],
'cards': self.collection().db.list(
"select id from cards where nid = ? order by ord", self.id)
"select id from cards where nid = ? order by ord", note.id)
})
except TypeError as e:
# Anki will give a TypeError if the note ID does not exist.