genanki icon indicating copy to clipboard operation
genanki copied to clipboard

Is deck_id necessary?

Open kerrickstaley opened this issue 1 year ago • 1 comments

I'm not sure what effect setting the deck_id has. Maybe we could just use a default value like 0 always. We need to experiment with this.

kerrickstaley avatar Jan 15 '24 20:01 kerrickstaley

I believe it is! I am working on some python code that'll parse an org file from Emacs org-mode to generate Anki cards.

If I set the deck_id to 1, it ends up inserting all of the created cards into the "Default" deck.

When I set the deck_id to a different number, it created a new deck with my passed in deck name, and inserted all the cards into the created deck.

This also includes if I set the setting "Import any deck presets" to on.

cyrialize avatar Mar 10 '24 18:03 cyrialize