Skip to content

Commit

Permalink
fix IndexArrayOfBoundsException with non-conform assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
luechtdiode committed Mar 30, 2024
1 parent 57caa80 commit c15d103
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ object RiegenBuilder {
)

stationmap.values.toList.distinct.sorted.flatMap { station =>
athletdevicemap.map{ kandidat =>
(kandidat._2(station), kandidat)
}.groupBy(_._1)
athletdevicemap
.filter{ _._2.size >station }
.map{ kandidat => (kandidat._2(station), kandidat) }
.groupBy(_._1)
.map{gr =>
val (disziplin: Disziplin, candidates: Seq[(Disziplin, (Kandidat, List[Disziplin]))]) = gr
val completed = candidates.flatMap(k => k._2._1.wertungen)
Expand Down

0 comments on commit c15d103

Please sign in to comment.