I am rewriting my addon for importing mind maps into anki. My class inherits from the
Noteimporter class and uses its
importNotes() method. Everything works fine already except that no matter what I do, the cards always get added to the default deck (did = 1). I already call
col.decks.select() to select the preferred deck and I also tried adding the did to the ForeignNotes which are used as input for
importNotes() but for some reason the notes still get imported to the default deck every time.
col.decks.selected() does return the preferred did in the moment the cards are created (in
Does anyone know what else I can do to set the deck that I want to import my cards to?