Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no kick off if previous play is weather delay #461

Merged
merged 2 commits into from Mar 7, 2024

Conversation

mrcaseb
Copy link
Member

@mrcaseb mrcaseb commented Mar 7, 2024

There is this logic where we set kickoff_attempt to 1 mostly for plays with penalties.

The logic uses previous play data and skips the kickoff_attempt in various situations. The logic includes that we skip a kickott_attempt if the play description of the previous play says "The game has resumed" after it has been suspended for whatever reason.

However, in 2023_13_ARI_PIT the games has been suspended twice and after the second one there ways no "The game has resumed" which made the logic set kickoff_attempt == 1 and ultimately resulted in wrong fixed_drive numbers (#447).

This PR explicitly avoids kickoff_attempt if the previous play description says "game has been suspended". This fixes #447 but it might fail in the future if the "The game has resumed" play is missing and the play description varies for some reason.

@mrcaseb mrcaseb requested a review from guga31bb March 7, 2024 11:24
@mrcaseb mrcaseb enabled auto-merge (squash) March 7, 2024 11:24
Copy link

github-actions bot commented Mar 7, 2024

@mrcaseb mrcaseb merged commit efcbef9 into master Mar 7, 2024
7 checks passed
@mrcaseb mrcaseb deleted the kickoff-in-weather-delay branch March 7, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants