Skip to content

Commit

Permalink
fix: keep original deck when changing model
Browse files Browse the repository at this point in the history
refer: #99
  • Loading branch information
lervag committed Jul 3, 2024
1 parent bc053d0 commit 83b018f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apyanki/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def change_model(self) -> Optional[Note]:
" ".join(self.n.tags),
fields,
any(check_if_generated_from_markdown(f) for f in self.n.values()),
deck = self.get_deck()
)

new_note = note_data.add_to_collection(self.a)
Expand Down

0 comments on commit 83b018f

Please sign in to comment.