Added collectors number to edition

This commit is contained in:
Artyom Belousov 2020-09-22 11:40:54 +03:00
parent 194aee8e69
commit a941095a73
2 changed files with 3 additions and 5 deletions

View file

@ -19,11 +19,7 @@ func GetPrices(name string) ([]CardPrice, error) {
resp, err := client.SearchCards(ctx, name, opts)
var prices []CardPrice
for _, card := range resp.Cards {
fullArtString := ""
if card.FullArt {
fullArtString = " (Fullart)"
}
edition := card.SetName + fullArtString
edition := card.SetName + " #" + card.CollectorNumber
if card.Prices.USD == "" && card.Prices.USDFoil == "" {
continue
}