Skip to content

Commit

Permalink
fix inferred body weight based on existing eligibility categories.
Browse files Browse the repository at this point in the history
  • Loading branch information
jflamy committed Feb 24, 2025
1 parent 43d2aa4 commit d63f8f3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1288,10 +1288,8 @@ public Double inferBW(Double bw1) {
// Use all assigned categories to guess a bodyweight
List<Category> cats = editedAthlete.getParticipations().stream()
.map(p -> p.getCategory())
.filter(c -> isRegularBWCategory(c) // not an open category due to lower bound
)
.peek(c -> logger.debug("*** cat {} {} {} {}", c, c.getMinimumWeight(), c.getMaximumWeight(),
isRegularBWCategory(c)))
.filter(c -> isRegularBWCategory(c)) // not an open category due to lower bound
// .peek(c -> logger.debug("*** cat {} {} {}", c, c.getMinimumWeight(), c.getMaximumWeight()))
.toList();

// use smallest category upper bound for normal categories
Expand Down

0 comments on commit d63f8f3

Please sign in to comment.