please include the "In Deck" flag into deck export

 avatar
pessimizor avatarpessimizor 4 years
{"ops":[{"insert":"When exporting a deck in any format, it looks like the rather important \"In Deck\" flag for each category is mostly ignored/absent. It would be rather useful to use/include.\n\nIn particular, I'm using/scripting a code that utilizes json export: https://archidekt.com/api/decks/DeckID/small/?format=json. The In-Deck flag is completely absent there, make all the categories appear equally \"in-deck\". This is fine when folks use the default \"maybeboard\" and \"sideboard\" categories (since I can still filter those out), but that doesn't work when folks make custom categories that aren't supposed to be in the deck.\n"}]}
0
 avatar
andy avatarandy 4 years
{"ops":[{"insert":"The way we have our api set up, the information of whether not a category is included in a deck exists on the Category object. So if you look at that json that you linked to there, there is a \"categories\" property that give you a list of categories. You can look up each card's category in there and find out whether or not it is included in the deck. It does require a bit of extra scripting, but it keeps the size of the json object smaller.\n"}]}
0