taw / magic-search-engine

Search engine for Magic cards
MIT License
47 stars 19 forks source link

Add a "code" to the deck exporter for easier reference. #218

Closed axxroytovu closed 1 year ago

axxroytovu commented 1 year ago

This tool makes it easier to programmatically refer to a specific deck by code.

Deck codes are in three parts: {set code}-{category}-{individual_id}

The individual ID is the first five non-punctuation letters of the deck's name, followed by incrementing numbers if the deck id already exists.

taw commented 1 year ago

Are these codes used anywhere, or is it just for you?

taw commented 1 year ago

By the way, I'm not opposed to adding something like that, if you think it will have some wider use, or if it will make a big difference to you.

taw commented 1 year ago

Another by the way, in the search engine there's a way to refer to a specific deck.

If it's unambiguous, you can use name, but if there are multiple decks with same name, you can use deck:"/". So far this system worked for me and I'm not sure the proposed code system would be easier to use.

axxroytovu commented 1 year ago

Sorry, this was closed on accident while doing other things.

I added this because I'm trying to unify how my code refers to decks, packs, and sealed products. I don't think anyone else is using this, but I wanted something that was more unique than a name and more human readable than a uuid. It might be useful in the future, so I figured I'd pull this over if you wanted to include it. If you don't want it then no harm done.