BrightDV / BoxBox

Unofficial Android and web app for Formula 1 and Formula E fans!
https://codeberg.org/BrightDV/BoxBox
GNU General Public License v3.0
95 stars 11 forks source link

[BUG] Session date not shown for sprint shootouts #142

Closed Rafee-M closed 3 months ago

Rafee-M commented 3 months ago

Dates for everything else works fine, just the sprint shootout seems to not show the date. It would be nice if it could.

https://github.com/BrightDV/BoxBox/assets/69535896/90a799d0-96f0-41ea-8835-b7fdd6b5751c

BrightDV commented 3 months ago

With the API currently used (Ergast), there is not such information, so I can't add it. image

However, I am planning to also support F1's API, so it may be available when the support is added. Chinese GP:

As you can see, there are much more details ```json { "timetables": [ { "state": "upcoming", "session": "r", "gmtOffset": "+08:00", "description": "Race", "endTime": "2024-04-21T17:00:00", "startTime": "2024-04-21T15:00:00" }, { "state": "upcoming", "session": "s", "gmtOffset": "+08:00", "description": "Sprint", "endTime": "2024-04-20T12:00:00", "startTime": "2024-04-20T11:00:00" }, { "state": "upcoming", "session": "ss", "gmtOffset": "+08:00", "description": "Sprint Qualifying", "endTime": "2024-04-19T16:14:00", "startTime": "2024-04-19T15:30:00" }, { "state": "upcoming", "session": "p1", "gmtOffset": "+08:00", "description": "Practice 1", "endTime": "2024-04-19T12:30:00", "startTime": "2024-04-19T11:30:00" }, { "state": "upcoming", "session": "q", "gmtOffset": "+08:00", "description": "Qualifying", "endTime": "2024-04-20T16:00:00", "startTime": "2024-04-20T15:00:00" } ] } ```
BrightDV commented 3 months ago

My bad, I just saw that the SecondPractice element has the Sprint Qualifying data...

BrightDV commented 3 months ago
I also updated the app to support the new name of the sprint qualifs, thanks for the issue!
Rafee-M commented 3 months ago

Thanks for the quick fix!