From ba67c52d9b75eb13a02d491d2292ac2702c99817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Matthias=20Sch=C3=A4fer?= Date: Sat, 5 Oct 2024 13:31:17 +0200 Subject: [PATCH] Use non-deprecated snake case names of collection methods --- plugin/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/__init__.py b/plugin/__init__.py index ab3e63f..8719ddf 100644 --- a/plugin/__init__.py +++ b/plugin/__init__.py @@ -359,13 +359,13 @@ class AnkiConnect: def getCard(self, card_id: int) -> Card: try: - return self.collection().getCard(card_id) + return self.collection().get_card(card_id) except NotFoundError: self.raiseNotFoundError('Card was not found: {}'.format(card_id)) def getNote(self, note_id: int) -> Note: try: - return self.collection().getNote(note_id) + return self.collection().get_note(note_id) except NotFoundError: self.raiseNotFoundError('Note was not found: {}'.format(note_id))