Skip to content

Commit

Permalink
tcgplayer: Fix off by one error in progress logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kodawah committed Aug 16, 2024
1 parent 765d405 commit 9fdb5a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tcgplayer/tcgplayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func (tcg *TCGPlayerMarket) scrape() error {

go func() {
sets := mtgmatcher.GetAllSets()
total := len(sets) - 1
i := 1

var idsFound []int
Expand All @@ -218,7 +219,7 @@ func (tcg *TCGPlayerMarket) scrape() error {
continue
}

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

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

0 comments on commit 9fdb5a8

Please sign in to comment.