FooSoft / anki-connect

Anki plugin to expose a remote API for creating flash cards.
https://foosoft.net/projects/anki-connect/
Other
1.92k stars 218 forks source link

`addNote` notes added to default despite having a deckname. #385

Open adelin-b opened 1 year ago

adelin-b commented 1 year ago

There is a bug on current version.

addNote will add the note to the default deck even if there a deckName

to circuvent around it we have to add the note, then use the id and move it to the correct deck.

You can see it being done here : https://github.com/debanjandhar12/Obsidian-Anki-Sync/blob/main/src/AnkiConnect.ts

snoyes commented 1 year ago

I do not get that behavior.

Show the JSON being generated when you run your code, and some evidence that the note was generated in the wrong deck.