Fixed notesInfo fetching card IDs belonging to note

This commit is contained in:
ReneBrals 2018-01-09 14:24:56 +01:00
parent cd6dd8479c
commit 2d051c67c1

View File

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