Skip to content

Commit

Permalink
fix find similar athletes including verein
Browse files Browse the repository at this point in the history
  • Loading branch information
luechtdiode committed Jan 26, 2025
1 parent 4660fa8 commit 2b4c07e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/scala/ch/seidel/kutu/data/ResourceExchanger.scala
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ object ResourceExchanger extends KutuService with RiegenBuilder {
formatter.format(ts.toInstant)
case Some(value) => value.toString
case None => ""
case null => ""
case e => e.toString
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/ch/seidel/kutu/domain/AthletService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ trait AthletService extends DBService with AthletResultMapper with VereinService
val preret2 = namenSimilarity > 50 && vorNamenSimilarity > 25 && (namenSimilarity + vorNamenSimilarity) > 200 && (math.max(namenSimilarity, vorNamenSimilarity) > 140)
val vereinSimilarity = athlet.verein match {
case Some(vid) => vid == code.verein
case _ => true
case _ => false
}
// if (code.name.equals(athlet.name)) {
// print(athlet.easyprint, this)
Expand Down

0 comments on commit 2b4c07e

Please sign in to comment.