Skip to content

Commit

Permalink
cardtrader: Fix non-English cards being skipped
Browse files Browse the repository at this point in the history
This field was empty.
  • Loading branch information
kodawah committed Oct 19, 2023
1 parent 6cd5e69 commit 334fa22
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions cardtrader/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ type Product struct {
Cents int `json:"cents"`
Currency string `json:"currency"`
} `json:"price"`
Expansion struct {
Name string `json:"name"`
} `json:"expansion"`

UserDataField string `json:"user_data_field"`
PriceCents int `json:"price_cents"`
Expand Down
2 changes: 1 addition & 1 deletion cardtrader/cardtrader.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func processProducts(channel chan<- resultChan, theCard *mtgmatcher.Card, produc
var cardIdFoil string

for _, product := range products {
if mtgmatcher.SkipLanguage(theCard.Name, product.Expansion.Name, product.Properties.Language) {
if mtgmatcher.SkipLanguage(theCard.Name, theCard.Edition, product.Properties.Language) {
continue
}

Expand Down

0 comments on commit 334fa22

Please sign in to comment.