Skip to content

Commit

Permalink
Update docs/src/modules/ROOT/pages/constraints-and-score/score-calcul…
Browse files Browse the repository at this point in the history
…ation.adoc

Co-authored-by: Christopher Chianelli <[email protected]>
  • Loading branch information
TomCools and Christopher-Chianelli authored Feb 4, 2025
1 parent 2fd33d1 commit 616f79f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ Python::
def multiple_consecutive_home_matches(factory: ConstraintFactory) -> Constraint:
return (factory.for_each(Match)
.group_by(lambda match,
ConstraintCollectors.to_consecutive_sequences(lambda match: match.homeTeam, lambda match: match.roundId))
ConstraintCollectors.to_consecutive_sequences(lambda match: match.home_team, lambda match: match.round_id))
.flatten_last(lambda chain: chain.getConsecutiveSequences())
.filter(lambda team, matches: matches.getCount() >= MAX_CONSECUTIVE_MATCHES)
.penalize(HardSoftScore.ONE_HARD, lambda team, matches: matches.getCount())
Expand Down

0 comments on commit 616f79f

Please sign in to comment.