Foreach all decks

Please, How to foreach all decks?
Thanks!

maybe you could expand and reword your post? I have no idea what you mean and since no one has answered yet maybe I’m not the only one.

1 Like

Nice, thank for your answer!
Can I get all deck’s names from the user collection?

If you’re asking about add-on development, you can use the all_names_and_ids function accessible through mw.col.decks.all_names_and_ids

See https://github.com/ankitects/anki/blob/410987f0a6dacc32d9029e7801a1141b0e6ea434/pylib/anki/decks.py#L133

1 Like

Nice! That’s it!
Thanks!