Browse Source

add file forgotten in last commit.

main
Gisle Aune 4 years ago
parent
commit
02a251166f
  1. 2
      services/loader.go

2
services/loader.go

@ -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 {
if item.GroupWeight > 0 {
result.CompletedAmount += amount result.CompletedAmount += amount
}
} else { } else {
result.CompletedAmount += amount * item.GroupWeight result.CompletedAmount += amount * item.GroupWeight
} }

Loading…
Cancel
Save