Skip to content

fix: handle inconsistent safety car#260

Merged
slowlydev merged 3 commits intoslowlydev:developfrom
AbsentData:bugfix/handle-inconsistent-safety-car
May 8, 2025
Merged

fix: handle inconsistent safety car#260
slowlydev merged 3 commits intoslowlydev:developfrom
AbsentData:bugfix/handle-inconsistent-safety-car

Conversation

@AbsentData
Copy link
Contributor

F1 is inconsistent with which car is the safety car (241, 242, or 243), this handles that by showing whichever car has a non-zero z value. There is never any overlap between those cars (at least since Spain last year since that's as far back as my data goes), so that doesn't need to be worried about, and through the testing I've done it seems to consistently work.

@AbsentData AbsentData requested a review from slowlydev as a code owner May 8, 2025 01:18
@vercel
Copy link

vercel bot commented May 8, 2025

@AbsentData is attempting to deploy a commit to the f1-dash Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented May 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
f1-dash ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2025 8:37am

Copy link
Owner

@slowlydev slowlydev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made a small adjustment so we show all safety cars, in cease one of them could be the medical car, else lgtm, thanks

@slowlydev slowlydev changed the base branch from main to develop May 8, 2025 08:39
@slowlydev slowlydev merged commit 73fae68 into slowlydev:develop May 8, 2025
2 checks passed
@AbsentData
Copy link
Contributor Author

Makes sense. I originally did that but I preferred the code the other way and the data never showed any overlap, but this is probably better just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants