From b05c9d15986ab4e33daa2a47a947efb066bb69b6 Mon Sep 17 00:00:00 2001 From: Abdo Date: Sun, 21 Jul 2024 11:26:10 +0300 Subject: [PATCH] Fix change_notetype_of_notes's docstring (#3304) --- pylib/anki/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylib/anki/models.py b/pylib/anki/models.py index 09035b30a..b2a9c28dc 100644 --- a/pylib/anki/models.py +++ b/pylib/anki/models.py @@ -389,8 +389,8 @@ and notes.mid = ? and cards.ord = ?""", To get defaults, use - input = ChangeNotetypeRequest() - input.ParseFromString(col.models.change_notetype_info(...)) + info = col.models.change_notetype_info(...) + input = info.input input.note_ids.extend([...]) The new_fields and new_templates lists are relative to the new notetype's