We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f90e5b5 + 9ed9e2c commit cd3a711Copy full SHA for cd3a711
src/apyanki/anki.py
@@ -597,7 +597,8 @@ def _update_file_with_note_ids(
597
note_positions.append(len(content))
598
599
# Extract each note's section and check if it needs to be updated
600
- updated_content: list[str] = []
+ # Keep content before first '# Note'
601
+ updated_content: list[str] = content[0 : note_positions[0]]
602
for i in range(len(note_positions) - 1):
603
start = note_positions[i]
604
end = note_positions[i + 1]
0 commit comments