From 14a5ab353edb18cc8e3cf22dccc538b4b47ad0ed Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 2 Jun 2020 17:34:34 +1000 Subject: [PATCH] fix duplicate/empty check --- pylib/anki/notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/notes.py b/pylib/anki/notes.py index 3a4088f8d..58d6fca44 100644 --- a/pylib/anki/notes.py +++ b/pylib/anki/notes.py @@ -147,4 +147,4 @@ class Note: def dupeOrEmpty(self) -> int: "1 if first is empty; 2 if first is a duplicate, 0 otherwise." - return self.col.backend.note_is_duplicate_or_empty(self.to_backend_note()) + return self.col.backend.note_is_duplicate_or_empty(self.to_backend_note()).state