This commit is contained in:
Hamcha 2018-10-16 15:39:35 +02:00
parent 5e64c3120f
commit e09a2b473a
Signed by: hamcha
GPG key ID: A40413D21021EAEE

View file

@ -76,7 +76,7 @@ func scryfallSearch(query string, offset int) (results CardSearchResults, err er
func scryfallGetCard(cardname string) (card CardData, err error) { func scryfallGetCard(cardname string) (card CardData, err error) {
cardname = url.QueryEscape(cardname) cardname = url.QueryEscape(cardname)
requrl := fmt.Sprintf("https://api.scryfall.com/cards/named?fuzzy=%s") requrl := fmt.Sprintf("https://api.scryfall.com/cards/named?fuzzy=%s", cardname)
response, err := netClient.Get(requrl) response, err := netClient.Get(requrl)
if err != nil { if err != nil {
return return