Reduce call to Scryfall #64
Labels
help wanted
Any issue where external help is more than welcome.
must have
First priority. We have to do it.
performance
Any issue where we can improve Inkfathom Proxy performance.
When someone click on the search button, we grab the decklist. For each non-url line of the decklist, we extract the name, lang, set, etc. Then we do a call to the Scryfall's search API to get all matching answers. Finally we filter matching answers to get the one with a matching printed name. Then we call Scryfall once more to get the picture of the card.
When someone click on the switchButton of a given card, we call the Scryfall's API for a given card to get all the prints urls of the card. Then we load the next url one.
Two ideas:
This may be a considerable alteration. We will wait for the end of #43 first.
The text was updated successfully, but these errors were encountered: