mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-10 08:25:56 +02:00
[PR #21] [CLOSED] new and improved DNF and race finish leaderboard #78
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/21
Author: @0xgny
Created: 12/1/2025
Status: ❌ Closed
Base:
improved-leaderboard← Head:trying-api📝 Commits (10+)
e4a40ebadded flag and dnf3603716v135e756btime delta approach799d6befinal touches64e64fbfinal touchese10eeb7changed flag location958051badded +1 and penalties26e8e8bcleaning up0a7bfb3it works nowee3f0feupdating readme📊 Changes
8 files changed (+1159 additions, -33 deletions)
View changed files
📝
.gitignore(+3 -1)➕
DNF_AND_FINISH_DETECTION.md(+421 -0)➕
LEADERBOARD_VERIFICATION.md(+196 -0)➕
images/flags/chequered_flag.png(+0 -0)📝
requirements.txt(+2 -1)📝
src/arcade_replay.py(+260 -29)📝
src/f1_data.py(+120 -2)➕
src/leaderboard_verifier.py(+157 -0)📄 Description
this new update corrects the flaws in my previous pr.
the checkered flag icon is not in the tyres folder anymore and has been renamed
instead of
DNFfor lapped drivers, they now get the checkered flag once they finish and also have the+N Lapincluded in the leaderboardThere is now a Penalties section that appears at the end of the race and shows what drivers had position or time penalties during the race
And finally, since i have been running into issues with translating the telemetry data into accurate leaderboard positions (especially at the end of the race), i have now added a separate API (Jolpica F1 API) to run a final check to ensure we have a correct race result. It works pretty well and it solves the main leaderboard issue i've been trying to fix all day. A good way to test it would be with the Las Vegas GP where both papaya boys got DSQ after finishing top 10.
Let me know what you think!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.