[PR #45] [MERGED] Added two new options: --list-rounds and --list-sprints #97

Closed
opened 2026-05-07 00:18:38 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/45
Author: @111110100
Created: 12/15/2025
Status: Merged
Merged: 12/15/2025
Merged by: @IAmTomShaw

Base: mainHead: main


📝 Commits (3)

  • 1d264ce Added new arguments --list-rounds and --list-sprints that shows the round/sprint number
  • 80f4cf5 Sprint races was only introduced in 2021 and had 3 different string names
  • c5db49c Moved new functions to bottom

📊 Changes

2 files changed (+36 additions, -3 deletions)

View changed files

📝 main.py (+7 -2)
📝 src/f1_data.py (+29 -1)

📄 Description

--list-rounds lists the rounds with the location

python3 main.py --year 2023 --list-rounds
F1 Schedule 2023
0: Pre-Season Testing
1: Bahrain Grand Prix
2: Saudi Arabian Grand Prix
3: Australian Grand Prix
4: Azerbaijan Grand Prix
...

--list-sprints lists the rounds with sprint races (starting 2021 when it was introduced)

python3 main.py --year 2023 --list-sprints
F1 Sprint Races 2023
4: Azerbaijan Grand Prix
9: Austrian Grand Prix
12: Belgian Grand Pri
...

you would then use the number as the parameter of which round/sprint you want to replay.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/IAmTomShaw/f1-race-replay/pull/45 **Author:** [@111110100](https://github.com/111110100) **Created:** 12/15/2025 **Status:** ✅ Merged **Merged:** 12/15/2025 **Merged by:** [@IAmTomShaw](https://github.com/IAmTomShaw) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`1d264ce`](https://github.com/IAmTomShaw/f1-race-replay/commit/1d264ce7c35e0b6f28f5ccc84e1628ee977b6836) Added new arguments --list-rounds and --list-sprints that shows the round/sprint number - [`80f4cf5`](https://github.com/IAmTomShaw/f1-race-replay/commit/80f4cf5446390bf18c88d0a7681f04bba49b0c21) Sprint races was only introduced in 2021 and had 3 different string names - [`c5db49c`](https://github.com/IAmTomShaw/f1-race-replay/commit/c5db49ca1e14718062cc4365310fc4bdc13b4d46) Moved new functions to bottom ### 📊 Changes **2 files changed** (+36 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `main.py` (+7 -2) 📝 `src/f1_data.py` (+29 -1) </details> ### 📄 Description --list-rounds lists the rounds with the location ``` python3 main.py --year 2023 --list-rounds F1 Schedule 2023 0: Pre-Season Testing 1: Bahrain Grand Prix 2: Saudi Arabian Grand Prix 3: Australian Grand Prix 4: Azerbaijan Grand Prix ... ``` --list-sprints lists the rounds with sprint races (starting 2021 when it was introduced) ``` python3 main.py --year 2023 --list-sprints F1 Sprint Races 2023 4: Azerbaijan Grand Prix 9: Austrian Grand Prix 12: Belgian Grand Pri ... ``` you would then use the number as the parameter of which round/sprint you want to replay. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:18:38 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#97
No description provided.