1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: exclude zero entries again

This commit is contained in:
Ferdinand Mütsch 2021-06-12 12:06:24 +02:00
parent 69627fbe11
commit 650fffa344

View File

@ -261,8 +261,10 @@ func (srv *SummaryService) withProjectLabels(summary *models.Summary) *models.Su
labels := make([]*models.SummaryItem, 0, len(labelMap)) labels := make([]*models.SummaryItem, 0, len(labelMap))
for _, v := range labelMap { for _, v := range labelMap {
if v.Total > 0 {
labels = append(labels, v) labels = append(labels, v)
} }
}
summary.Labels = labels summary.Labels = labels
return summary return summary
} }