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