jolpica / jolpica-f1

Apache License 2.0
41 stars 1 forks source link

``/results`` filter includes retired driver on some endpoints #14

Closed theOehrly closed 5 months ago

theOehrly commented 5 months ago

When filtering an endpoint with /results/<n>, Ergast only returns data for drivers that actually finished the GP. Results with a DNF in that position are not shown.

This concerns the following endpoints: 'drivers', 'constructors', 'circuits', 'status'

Example

http://ergast.com/api/f1/2023/results/20/drivers.json http://api.jolpi.ca/ergast/f1/2023/results/20/drivers.json

Ergast only returns Sargeant and Magnussen, as these are the only two drivers that ever finished a GP in position 20 without that being a DNF.