louietan / anki-editor

Emacs minor mode for making Anki cards with Org
699 stars 87 forks source link

Any way to avoid "cannot create note because it is a duplicate"? #90

Closed IsaacDempsey closed 3 years ago

IsaacDempsey commented 3 years ago

When I run anki-editor-push-notes it tries to push every card in my org file to anki. But the majority are already present on anki, so they fail with reason "cannot create note because it is a duplicate". Is there a way to skip these files? Maybe skip a card if there is already an ANKI_NOTE_ID property defined?

IsaacDempsey commented 3 years ago

Found the answer in the code comments:

For notes that already exist in Anki (i.e. has `ANKI_NOTE_ID' property), only their fields and tags will be updated, change of deck or note type are currently not supported.

So, my cards which are showing this error must not have the same note ids for some reason.