Skip to content

Commit

Permalink
cardtrader/sealed: Filter out non-English products
Browse files Browse the repository at this point in the history
  • Loading branch information
kodawah committed Oct 6, 2023
1 parent 275ceab commit ac63302
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cardtrader/sealed.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func (ct *CardtraderSealed) printf(format string, a ...interface{}) {

func processSealedProducts(channel chan<- resultChan, uuid string, products []Product, shareCode string, rate float64) error {
for _, product := range products {
if product.Properties.Language != "en" {
continue
}

switch {
case product.Quantity < 1,
product.OnVacation,
Expand Down

0 comments on commit ac63302

Please sign in to comment.