Skip to content

Commit

Permalink
feat: don't show events that have a max price of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertYoung committed Oct 1, 2022
1 parent 2159a93 commit 5a5e7cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/manutd-ticket-checker/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ func (c *UnitedChecker) EventsAvailable() []*UnitedEventItem {
continue
}

if event.MaxPrice == 0 {
continue
}

log.Printf("%s available!\n", event.Name())

c.available_events = append(c.available_events, event)
Expand Down

0 comments on commit 5a5e7cd

Please sign in to comment.