From 2d051c67c1196cae31e797f452022bf13534f6c1 Mon Sep 17 00:00:00 2001 From: ReneBrals Date: Tue, 9 Jan 2018 14:24:56 +0100 Subject: [PATCH] Fixed notesInfo fetching card IDs belonging to note --- AnkiConnect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AnkiConnect.py b/AnkiConnect.py index 8997f9a..e051c16 100644 --- a/AnkiConnect.py +++ b/AnkiConnect.py @@ -762,7 +762,8 @@ class AnkiBridge: 'tags' : note.tags, 'fields': fields, '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: # Anki will give a TypeError if the note ID does not exist.