I was using this addon Advanced Copy Fields - AnkiWeb and I saw this on my console:
addons21\1898445115\advanced_copy_fields.py:382:'model' is deprecated: please use 'note_type'
addons21\1898445115\advanced_copy_fields.py:383:'fieldNames' is deprecated: please use 'field_names'
addons21\1898445115\advanced_copy_fields.py:382:'model' is deprecated: please use 'note_type'
addons21\1898445115\advanced_copy_fields.py:383:'fieldNames' is deprecated: please use 'field_names'
addons21\1898445115\advanced_copy_fields.py:473:beginReset() is deprecated: please use CollectionOp instead.
addons21\1898445115\advanced_copy_fields.py:503:endReset() is deprecated: please use CollectionOp instead.
File "\\?\F:\bazel\anki\rybdqld5\execroot\ankidesktop\bazel-out\x64_windows-fastbuild\bin\qt\runanki.exe.runfiles\ankidesktop\qt\runanki.py", line 19, in <module>
aqt.run()
File "\\?\F:\bazel\anki\rybdqld5\execroot\ankidesktop\bazel-out\x64_windows-fastbuild\bin\qt\runanki.exe.runfiles\ankidesktop\qt\aqt\__init__.py", line 445, in run
_run()
File "\\?\F:\bazel\anki\rybdqld5\execroot\ankidesktop\bazel-out\x64_windows-fastbuild\bin\qt\runanki.exe.runfiles\ankidesktop\qt\aqt\__init__.py", line 624, in _run
app.exec()
File "D:\Anki2\addons21\1898445115\advanced_copy_fields.py", line 523, in <lambda>
a.triggered.connect(lambda _, b=browser: onAdvCopyEdit(b))
File "D:\Anki2\addons21\1898445115\advanced_copy_fields.py", line 516, in onAdvCopyEdit
dialog.exec_()
File "D:\Anki2\addons21\1898445115\advanced_copy_fields.py", line 465, in onConfirm
processIt( browser,idx,nids,flds,fld1,fld2,template )
File "D:\Anki2\addons21\1898445115\advanced_copy_fields.py", line 504, in processIt
mw.requireReset()
File "\\?\F:\bazel\anki\rybdqld5\execroot\ankidesktop\bazel-out\x64_windows-fastbuild\bin\qt\runanki.exe.runfiles\ankidesktop\qt\aqt\main.py", line 782, in requireReset
traceback.print_stack(file=sys.stdout)
requireReset() is obsolete; please use CollectionOp()
I wonder if I can leave it like this or if I really need to use this CollectionOp()
thing.
Does this requireReset()
is going to be removed from Anki some day and I need to update the addon to use this CollectionOp()
or can I leave the addon using requireReset()
?
If I need to change this requireReset()
by CollectionOp()
, there is an example somewhere I can use as a guide (as I do not write this addon or used requireReset()
before) ?