Skip to content

Add TeamId and DriverId to F1 API driver info for FP sessions (fix #811)#923

Open
TumCucTom wants to merge 1 commit into
theOehrly:mainfrom
TumCucTom:fix/811-missing-teamid-driverid-fp
Open

Add TeamId and DriverId to F1 API driver info for FP sessions (fix #811)#923
TumCucTom wants to merge 1 commit into
theOehrly:mainfrom
TumCucTom:fix/811-missing-teamid-driverid-fp

Conversation

@TumCucTom

Copy link
Copy Markdown
Contributor

Summary

The F1 API provides TeamId and DriverId for drivers, but _drivers_from_f1_api was not collecting these fields. For FP sessions where Ergast data is not available (only race session data is used from Ergast for practice sessions), these fields would be missing entirely.

This adds TeamId and DriverId to the F1 API driver info mapping so that FP session results include these fields.

Fix

Added TeamId and DriverId to the field mapping in _drivers_from_f1_api().

Testing

Unable to test locally due to data fetching requirements. The fix follows the existing pattern in the code for other fields from the F1 API.

Checklist

AI Disclosure

AI was used as a coding assistant. The human author reviewed all AI-generated code and changes.

The F1 API provides TeamId and DriverId for drivers, but _drivers_from_f1_api
was not collecting these fields. For FP sessions where Ergast data is not
available (only race session data is used from Ergast), these fields would
be missing entirely.

This adds TeamId and DriverId to the F1 API driver info mapping so that
FP session results include these fields.

Fixes theOehrly#811

Co-Authored-By: Zippy AI <tomkinsbale@icloud.com>
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