Skip to content

Commit

Permalink
Merge pull request #800 from luechtdiode/799-synchronisation-der-anme…
Browse files Browse the repository at this point in the history
…ldungen-zeigt-irrelevante-umteilungsaktion-an

799 synchronisation der anmeldungen zeigt irrelevante umteilungsaktion an
  • Loading branch information
luechtdiode authored Jan 13, 2024
2 parents 5fb8838 + 92caa53 commit 342939e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ch.seidel</groupId>
<artifactId>KuTu</artifactId>
<version>2.3.5</version>
<version>2.3.6</version>

<inceptionYear>2014</inceptionYear>

Expand Down
7 changes: 6 additions & 1 deletion src/main/scala/ch/seidel/kutu/data/RegistrationAdmin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ object RegistrationAdmin {
if (existingAthletes.contains(wertung.athlet.id)) {
existingPgmAthletes.get(wertung.wettkampfdisziplin.programm.id) match {
case Some(athletList: Map[Long, AthletRegistration]) => athletList.get(wertung.athlet.id) match {
case Some(athletReistration) => if (athletReistration.team.contains(wertung.team)) "Unverändert" else "Umteilen"
case Some(athletReistration) =>
if (athletReistration.team.getOrElse(0) == wertung.team) {
"Unverändert"
} else {
"Umteilen"
}
case None => "Umteilen"
}
case _ => "Umteilen"
Expand Down

0 comments on commit 342939e

Please sign in to comment.