Only take closed tickets into account for the report

This commit is contained in:
Miguel de la Cruz 2020-09-24 18:34:15 +02:00
parent d65fe6303c
commit 73f9a153d7

View file

@ -9,6 +9,10 @@ import (
func (c *Campaign) PrintUserReport() {
userTickets := map[string]int{}
for _, ticket := range c.Tickets {
if !ticket.IsClosed() {
continue
}
user := ticket.GithubAssignee
if user != "" {
if count, ok := userTickets[user]; ok {