Skip to content

Commit

Permalink
#815 fix Punktegleichstandsregel
Browse files Browse the repository at this point in the history
feed with effective results instead of reduced sums of all gears.
  • Loading branch information
luechtdiode committed Jan 31, 2024
1 parent 6144c6b commit 30ff6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/ch/seidel/kutu/data/GroupSection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ case class GroupLeaf[GK <: DataObject](override val groupKey: GK, list: Iterable
if (anzahWettkaempfe > 1)
w.resultat
else
(w.resultat * STANDARD_SCORE_FACTOR) + (w.resultat * gleichstandsregel.factorize(w, wksums))
(w.resultat * STANDARD_SCORE_FACTOR) + (w.resultat * gleichstandsregel.factorize(w, wk._2.map(w => w.resultat).toList))
}.reduce(_ + _)
}
val gsum = if (gwksums.nonEmpty) gwksums.reduce(_ + _) else Resultat(0, 0, 0)
Expand Down

0 comments on commit 30ff6a7

Please sign in to comment.