anki-connect icon indicating copy to clipboard operation
anki-connect copied to clipboard

remNotes is deprecated

Open kjk11 opened this issue 3 years ago • 3 comments

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?

kjk11 avatar Jun 08 '22 14:06 kjk11

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.

oakkitten avatar Jun 08 '22 17:06 oakkitten

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

kjk11 avatar Sep 16 '22 20:09 kjk11

I'll release a new version today

FooSoft avatar Sep 18 '22 00:09 FooSoft