Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to define a list of set_types to exclude #303

Merged
merged 5 commits into from
Feb 10, 2024

Conversation

tooomm
Copy link
Contributor

@tooomm tooomm commented Nov 19, 2023

Fixes #302

The amount of included sets can get quite crazy with many many cards. Just two weeks ago there were like 10 sets included in the spoiler file, which can create a bit of a mess.
For most people, gift and promo cards or special sets that are not widely legal or can not be played in limited formats are not of interest at all.

Currently, there is Wizards Play Network 2024 set included with promotional gift cards for example. It can be useful for some to have this, but I like to keep it clean for the huge majority of users. Fewer notifications and popups for new sets in Cockatrice, but more relevant ones.

This allows users to run the script more flexible and to their needs.
We currently exclude token only sets already, I included some more very specific ones to narrow it down to the more relevant sets like core, masters, expansion and commander.

Input for excluded list taken from https://scryfall.com/docs/api/sets

Open for your opinions on my picks!
Was not sure if funny should be excluded by default as well.

magic_spoiler/__main__.py Outdated Show resolved Hide resolved
@tooomm tooomm requested a review from ZeldaZach December 10, 2023 10:41
@tooomm
Copy link
Contributor Author

tooomm commented Feb 10, 2024

Ok, so no other opinions here for now.

We can still discuss and adjust the picks after collecting feedback and seeing it in action.

@tooomm tooomm merged commit 0efd986 into master Feb 10, 2024
1 check passed
@tooomm tooomm deleted the tooomm-exclude_set_types branch February 10, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filter certain set types out (e.g. Promo)
2 participants