Hi all,
I’m getting a strange behaviour when trying to call the add_notes
method of the Collection object. Specifically, it suggests that the method doesn’t exist.
To debug, I ran the following code snippet:
methods = [str(method) for method in dir(my_object) if callable(getattr(my_object, method))]
This verifies that, indeed, the add_notes
method is not there (only add_note
).
Inspecting the source code for the ‘Collection’ object suggests that this method is present. I’ve tried upgrading Anki to the latest version, in case the version used in the app is was old and out-of-date, but this doesn’t solve the issue.
Does anyone have any insight on why this might be happening? Alternatively, a workaround for correctly returning an OpChanges
object after repeatedly calling the add_note
method would be much appreciated!
Thanks in advance.