louietan/anki-editor

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

IsaacDempsey opened this issue · 1 comments

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?

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.