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:
parent
69627fbe11
commit
650fffa344
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user