diff --git a/src/apyanki/note.py b/src/apyanki/note.py index 2d6a1e3..ff5d904 100644 --- a/src/apyanki/note.py +++ b/src/apyanki/note.py @@ -271,9 +271,13 @@ def change_model(self) -> Optional[Note]: for field in model["flds"]: fields[field["name"]] = "" + fields[first_field] = f"Created from Note {self.n.id}\n\n" for old_field_name, old_field in self.n.items(): fields[first_field] += f"### {old_field_name}\n{old_field}\n" + if model["name"] == "Cloze": + fields[first_field] += "\nCloze card needs clozes: {{c1::content}}" + note_data = NoteData( model["name"], " ".join(self.n.tags), @@ -580,7 +584,7 @@ def add_to_collection(self, anki: Anki) -> Note: for tag in self.tags.strip().split(): new_note.add_tag(tag) - if not new_note.dupeOrEmpty(): + if not new_note.duplicate_or_empty(): anki.col.addNote(new_note) anki.modified = True else: