The livetiming API provides information about the session type. Using this may be preferable over having hard-coded values if this information is really only necessary when processing data from the livetiming API. It would allow removing hard-coded values that are subject to change over multiple seasons, and potentially enable some code clean-up.
Proposed new feature or change:
The livetiming API provides information about the session type. Using this may be preferable over having hard-coded values if this information is really only necessary when processing data from the livetiming API. It would allow removing hard-coded values that are subject to change over multiple seasons, and potentially enable some code clean-up.
More comments and discussion can be found here: https://github.com/theOehrly/Fast-F1/pull/572#issuecomment-2066232014
Some more in depth investigation is necessary to determine whether such a change is reasonable.