add file forgotten in last commit.

This commit is contained in:
2021-02-07 13:32:02 +01:00
parent 173158a514
commit 02a251166f
+3 -1
View File
@@ -555,7 +555,9 @@ func (l *Loader) populateGoals(ctx context.Context, goal *models.Goal) (*models.
item.CompletedAmount += amount item.CompletedAmount += amount
if goal.Unweighted { if goal.Unweighted {
result.CompletedAmount += amount if item.GroupWeight > 0 {
result.CompletedAmount += amount
}
} else { } else {
result.CompletedAmount += amount * item.GroupWeight result.CompletedAmount += amount * item.GroupWeight
} }