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

Search query for card names with "Aether" always return an empty result. #5

Closed
BeMacized opened this issue Oct 22, 2016 · 4 comments
Closed

Comments

@BeMacized
Copy link
Contributor

card.where({name: $var}).then(cards => {
   //my code
})

When using this code with $var being any string containing "aether", the cards variable comes in as an empty array. As soon as you use "ether" instead, it works for all cards.

"aetherflux reservoir" results in nothing.
"etherflux reservoir" works.

@adback03
Copy link
Member

Thank you for pointing this out! This was an issue with the API, and I just published a fix for it.

@raineorshine
Copy link
Collaborator

Hi, thanks for reporting. There must be something else going on for you unfortunately. I tested card.where({ name: 'aetherflux reservoir' }) and it works correctly, returning:

[ { name: 'Aetherflux Reservoir',
    manaCost: '{4}',
    cmc: 4,
    type: 'Artifact',
    types: [ 'Artifact' ],
    rarity: 'Rare',
    set: 'KLD',
    setName: 'Kaladesh',
    text: 'Whenever you cast a spell, you gain 1 life for each spell you\'ve cast this turn.\nPay 50 life: Aetherflux Reservoir deals 50 damage to target creature or player.',
    flavor: 'While most power is used for ordinary, everyday tasks, one shouldn\'t underestimate its potential for the extraordinary.',
    artist: 'Cliff Childs',
    number: '192',
    layout: 'normal',
    multiverseid: 417765,
    imageUrl: 'http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=417765&type=card',
    rulings: [ [Object], [Object], [Object], [Object] ],
    foreignNames: 
     [ [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object],
       [Object] ],
    printings: [ 'KLD' ],
    originalText: 'Whenever you cast a spell, you gain 1 life for each spell you\'ve cast this turn.\nPay 50 life: Aetherflux Reservoir deals 50 damage to target creature or player.',
    originalType: 'Artifact',
    legalities: [ [Object], [Object], [Object], [Object], [Object], [Object] ],
    id: '5ad19f49428f2cb59cfd415b5e32c7e2f2535931' } ]

@raineorshine
Copy link
Collaborator

Haha. Nice timing!

What @adback03 said :).

@BeMacized
Copy link
Contributor Author

Awesome, thank you for the quick fix @adback03 !

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

No branches or pull requests

3 participants