Added full art indicator
This commit is contained in:
parent
06d43a67d5
commit
194aee8e69
2 changed files with 6 additions and 2 deletions
|
|
@ -19,8 +19,11 @@ func GetPrices(name string) ([]CardPrice, error) {
|
|||
resp, err := client.SearchCards(ctx, name, opts)
|
||||
var prices []CardPrice
|
||||
for _, card := range resp.Cards {
|
||||
foilString := ""
|
||||
edition := card.SetName + foilString
|
||||
fullArtString := ""
|
||||
if card.FullArt {
|
||||
fullArtString = " (Fullart)"
|
||||
}
|
||||
edition := card.SetName + fullArtString
|
||||
if card.Prices.USD == "" && card.Prices.USDFoil == "" {
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import (
|
|||
)
|
||||
|
||||
type CardPrice struct {
|
||||
FullArt bool
|
||||
Name string
|
||||
Price string
|
||||
PriceFoil string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue