1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Ignore closed and solved tickets

This commit is contained in:
Tim Fitzgerald 2018-07-25 09:43:37 -07:00
parent 766af8479d
commit f14743c94f

View File

@ -73,7 +73,7 @@ func newTickets() ([]Ticket, error) {
log.Fatal(err) log.Fatal(err)
} }
for _, Ticket := range tickets.Tickets { for _, Ticket := range tickets.Tickets {
if Ticket.Status == "new" { if Ticket.Status == "new" && Ticket.Status != "closed" && Ticket.Status != "solved" {
newTickets = append(newTickets, Ticket) newTickets = append(newTickets, Ticket)
} }
} }