From 4c96cc49374a2fbb56439c3d3078279000178238 Mon Sep 17 00:00:00 2001 From: louietan Date: Sun, 14 Jan 2018 17:59:17 +0800 Subject: [PATCH] Fix issue #64 --- AnkiConnect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnkiConnect.py b/AnkiConnect.py index 556e10c..82a69f2 100644 --- a/AnkiConnect.py +++ b/AnkiConnect.py @@ -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.