You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When requesting advanced stats, the "conference" property always displays the current conference. The regular stats endpoint, however, returns the relevant conference for each stat.
Steps to reproduce
Make a request for advanced stats for a team that has changed conferences, for example UCF.
without a year parameter
curl \
--request GET 'https://api.collegefootballdata.com/stats/season/advanced?team=ucf' \
--header 'Authorization: Bearer $CFBD_API_TOKEN'
with a year parameter
curl \
--request GET 'https://api.collegefootballdata.com/stats/season/advanced?team=ucf&year=2005' \
--header 'Authorization: Bearer $CFBD_API_TOKEN'
Inspect a stat for a year where they were in a different conference (e.g. 2005)
I agree that getAdvancedStats should display conference data as it pertains to the requested year as this is consistent with getTeamStats and virtually every other API endpoint. The fact that it doesn't currently function in this way is certainly an oversight and should be addressed.
Summary
When requesting advanced stats, the "conference" property always displays the current conference. The regular stats endpoint, however, returns the relevant conference for each stat.
Steps to reproduce
Make a request for advanced stats for a team that has changed conferences, for example UCF.
year
parameteryear
parameterInspect a stat for a year where they were in a different conference (e.g. 2005)
Expected results
The "conference" property is the conference affiliated with the team at the time of the stat (e.g. "Conference USA").
Actual results
The "conference" property is always the current conference (e.g. "American Athletic").
Other notes
The
StatsService.getTeamStats
function builds the SQL that joins on the matching conference, which I think is desired:The
StatsService.getAdvancedStats
function builds the SQL using a couple different join conditions, but always on the latest conference:and...
Thoughts @BlueSCar ?
The text was updated successfully, but these errors were encountered: