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:
parent
766af8479d
commit
f14743c94f
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user