Skip to content

Commit

Permalink
feat(nurturing): avoid lead when race distance >= 2400
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Jun 6, 2021
1 parent 21ebf41 commit 52fb284
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto_derby/jobs/nurturing.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ def _running_style_scores(ctx: Context, race1: race.Race) -> Tuple[float, float,

if race1.grade <= race1.GRADE_G2 or race1.distance <= 1800:
lead *= 1.2
if race1.distance >= 2400:
lead *= 0.9

return last, middle, head, lead

Expand Down

0 comments on commit 52fb284

Please sign in to comment.