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

tutor.set doesn't get all cards #66

Merged
merged 1 commit into from
Jul 21, 2013
Merged

tutor.set doesn't get all cards #66

merged 1 commit into from
Jul 21, 2013

Conversation

davidchambers
Copy link
Owner

There's a problem with cards that have different variations, like lands.

For example Plains in M14 have 4 variations, each with a different Artist and Collector's Number.
http://gatherer.wizards.com/Pages/Card/Details.aspx?printed=true&multiverseid=370615
http://gatherer.wizards.com/Pages/Card/Details.aspx?printed=true&multiverseid=370669
http://gatherer.wizards.com/Pages/Card/Details.aspx?printed=true&multiverseid=370679
http://gatherer.wizards.com/Pages/Card/Details.aspx?printed=true&multiverseid=370754

However, if I tutor.set 'Magic 2014', I get http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=370669 which is not even the first variation.

Unfortunately, due to the way Gatherer works, I doubt that this would be easy to fix.

@robdennis
Copy link
Collaborator

This may have been the known issue from the "spoiler" change that allowed "all" cards in a set to be retrieved in one query.

I'd expect that if you search by tutor.card Plains and checking "versions" that'd be an ok workaround

Thanks,
-Rob

On Sat, Jul 20, 2013 at 12:44 PM, Patrick notifications@github.com
wrote:

There's a problem with cards that have different variations, like lands.
For example Plains in M14 have 4 variations, each with a different Artist and Collector's Number.
http://gatherer.wizards.com/Pages/Card/Details.aspx?printed=true&multiverseid=370615
http://gatherer.wizards.com/Pages/Card/Details.aspx?printed=true&multiverseid=370669
http://gatherer.wizards.com/Pages/Card/Details.aspx?printed=true&multiverseid=370679
http://gatherer.wizards.com/Pages/Card/Details.aspx?printed=true&multiverseid=370754
However, if I tutor.set 'Magic 2014', I get http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=370669 which is not even the first variation.

Unfortunately, due to the way Gatherer works, I doubt that this would be easy to fix.

Reply to this email directly or view it on GitHub:
#66

@pgrosslicht
Copy link
Author

Nope, even before the change to the spoilers, tutor was not able to get all variations at once.

Well, it's a rather ugly workaround, as I'd have to tutor.card each card, check "versions" for other cards in this set and then tutor.card these again, append them to the original results and sort everything. But if it's not possible otherwise, this'll have to make do.

Thanks

@davidchambers
Copy link
Owner

I believe I've addressed the issue. To try the changes, do something along the lines of the following:

git checkout master
git checkout -b basics
git pull upstream basics  # replace "upstream" with your alias for davidchambers/tutor
make fixtures
make test

Assuming all the tests pass, go ahead and make some calls to tutor.set in the REPL. Let me know if this is the behaviour you had in mind. :)

@pgrosslicht
Copy link
Author

Tests run fine and the behaviour is exactly what I had in mind. Thanks for the quick fix!

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.

3 participants