From 5a5e7cd8974ff34b2f467b2d2fbf8e2f1e798b9f Mon Sep 17 00:00:00 2001 From: Robert Young Date: Sat, 1 Oct 2022 09:02:55 +0100 Subject: [PATCH] feat: don't show events that have a max price of 0 --- cmd/manutd-ticket-checker/checker.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/manutd-ticket-checker/checker.go b/cmd/manutd-ticket-checker/checker.go index 6267a15..66ee42d 100644 --- a/cmd/manutd-ticket-checker/checker.go +++ b/cmd/manutd-ticket-checker/checker.go @@ -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)