Skip to content

Commit 1ee6afe

Browse files
authored
merge: make -u option work again for add-from-file and update-from-file commands
refer: #120
2 parents f97fb91 + a2bbb03 commit 1ee6afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/apyanki/anki.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,19 +529,19 @@ def add_notes_from_file(
529529
filename: str,
530530
tags: str = "",
531531
deck: str | None = None,
532-
respect_note_ids: bool = True,
533532
update_origin_file: bool = False,
533+
respect_note_ids: bool = True,
534534
) -> list[Note]:
535535
"""Add notes from Markdown file
536536
537537
Args:
538538
filename: Path to the markdown file containing notes
539539
tags: Additional tags to add to the notes
540540
deck: Default deck for notes without a deck specified
541+
update_origin_file: If True, update the original file with note IDs
541542
respect_note_ids: If True, then this function looks for nid: or cid: headers
542543
in the file to determine if a note should be updated
543544
rather than added.
544-
update_origin_file: If True, update the original file with note IDs
545545
546546
Returns:
547547
List of notes that were updated or added

0 commit comments

Comments
 (0)