add file forgotten in last commit.
This commit is contained in:
@@ -555,7 +555,9 @@ func (l *Loader) populateGoals(ctx context.Context, goal *models.Goal) (*models.
|
||||
item.CompletedAmount += amount
|
||||
|
||||
if goal.Unweighted {
|
||||
if item.GroupWeight > 0 {
|
||||
result.CompletedAmount += amount
|
||||
}
|
||||
} else {
|
||||
result.CompletedAmount += amount * item.GroupWeight
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user