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

Fixing split card from UNH with wrong name in database (fix #2947) #2949

Merged
merged 7 commits into from
Dec 15, 2017
Merged

Fixing split card from UNH with wrong name in database (fix #2947) #2949

merged 7 commits into from
Dec 15, 2017

Conversation

KBGrammer
Copy link
Contributor

Related Ticket(s)

Short roundup of the initial problem

The card Who/What/When/Where/Why has the wrong name when it is generated in the database. Oracle defaults to the separator " // " for all split cards, which produces the wrong name for this card alone. This caused problems when exporting a list containing that card to Tappedout or Deckstats, with Tappedout failing due to the unknown card and Deckstats generating a link but with an unknown card in it.

What will change with this Pull Request?

The card name generation is modified for split/aftermath cards with more than 2 components to use the separator "/" instead of " // ". Deckstats and Tappedout generation now works for this card (and the 63 other split cards). The fix would affect any possible future split card with 3 sub-cards, but in principle such a situation would probably require this piece of code to be revisited anyway and adjusting this UNH card fix might not be an issue.

Screenshots

Tappedout
Deckstats

@tooomm
Copy link
Member

tooomm commented Dec 12, 2017

Seems to work for both services!

Thanks again for a quick fix with a very detailed description. 👍

Copy link
Member

@ZeldaZach ZeldaZach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@ZeldaZach ZeldaZach merged commit 6e24f59 into Cockatrice:master Dec 15, 2017
@KBGrammer KBGrammer deleted the kbg_split branch December 15, 2017 20:39
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.

split card from UNH has wrong name in cards.xml database
3 participants