Get a list of all deck config objects

I want to create a list that stores all config objects for all decks in the collection. Basicly what you would get via

confList = mw.col.decks.dconf

before the database rewrite? I’ve been poking around the source code for a few hours and I still can’t wrap my head around it. Any help or at least pointers would be appreciated, thanks!

I think mw.col.decks.all_config() is what you want.

See https://github.com/ankitects/anki/blob/1da327c7256d7e142ae0a5375b2b07f508edaa8b/pylib/anki/decks.py#L294

2 Likes