From 73f9a153d7bb58b9e919237021a23c2e3129af44 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Thu, 24 Sep 2020 18:34:15 +0200 Subject: [PATCH] Only take closed tickets into account for the report --- model/campaign_reports.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model/campaign_reports.go b/model/campaign_reports.go index 3520eb6..96cedda 100644 --- a/model/campaign_reports.go +++ b/model/campaign_reports.go @@ -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 {