FooSoft / anki-connect

Anki plugin to expose a remote API for creating flash cards.
https://foosoft.net/projects/anki-connect/
Other
1.91k stars 218 forks source link

remNotes is deprecated #333

Open kjk11 opened 2 years ago

kjk11 commented 2 years ago

As far as I can tell, the most recent version of the addon breaks some functionality of existing scripts. Anki displays the following error and the script that interfaces with Anki connect now fails to remove notes:

__init__.py:1330:remNotes is deprecated: please use 'remove_notes'

This sounds pretty self-explanatory, but the aforementioned script (https://github.com/Pseudonium/Obsidian_to_Anki) does not invoke remNotes. Is there any way to restore compatibility or downgrade the addon?

oakkitten commented 2 years ago

While remNotes is deprecated, it should still work. It is called by deleteNotes which has a passing test. Are you sure the cards are not deleted? Anki interface may not reflect the deletion at once (this is our fault).

Also I'm not sure if the version of this add-on on AnkiWeb is current. You can try overwriting the files in the addon folder with the ones in plugin folder of this repo.

kjk11 commented 1 year ago

Thank you, it seems that overwriting the AnkiWeb addon did the trick!

FooSoft commented 1 year ago

I'll release a new version today