From 6a2cc2dec1d5e916c81518ccefd0e25f8351fc01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Matthias=20Sch=C3=A4fer?= Date: Thu, 25 Apr 2024 10:06:26 +0200 Subject: [PATCH] Remove calls to deprecated (and empty) method autosave --- plugin/__init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugin/__init__.py b/plugin/__init__.py index 59f2048..a854f59 100644 --- a/plugin/__init__.py +++ b/plugin/__init__.py @@ -742,7 +742,6 @@ class AnkiConnect: nCardsAdded = collection.addNote(ankiNote) if nCardsAdded < 1: raise Exception('The field values you have provided would make an empty question on all cards.') - collection.autosave() return ankiNote.id @@ -832,8 +831,6 @@ class AnkiConnect: ankiNote.flush() - self.collection().autosave() - @util.api() def updateNote(self, note): @@ -899,9 +896,6 @@ class AnkiConnect: # Flush changes to ensure they are saved anki_note.flush() - # Save changes to the collection - collection.autosave() - @util.api() def updateNoteTags(self, note, tags): if type(tags) == str: