Skip to content

Commit

Permalink
tcgplayer: Fix off by one progress report
Browse files Browse the repository at this point in the history
  • Loading branch information
kodawah committed May 31, 2024
1 parent b6d7a04 commit 31e9cbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tcgplayer/tcgplayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ func (tcg *TCGPlayerMarket) scrape(mode string) error {
go func() {
sets := mtgmatcher.GetAllSets()
i := 1
allSetsSzie := len(sets) - 1
for _, code := range sets {
set, _ := mtgmatcher.GetSet(code)

Expand All @@ -281,7 +280,7 @@ func (tcg *TCGPlayerMarket) scrape(mode string) error {
continue
}

tcg.printf("Scraping %s (%d/%d)", set.Name, i, allSetsSzie)
tcg.printf("Scraping %s (%d/%d)", set.Name, i, len(sets))
i++

for _, card := range set.Cards {
Expand Down

0 comments on commit 31e9cbd

Please sign in to comment.