-
Notifications
You must be signed in to change notification settings - Fork 10
Description
The cfbd_team_info
function in cfbd_teams.R
receives conference
, only_fbs
, and year
as arguments. However, only conference
and only_fbs
work. year
is not a query parameter according to CFBDATA. As such, this ends up not doing anything when trying to filter for different years. This can be misleading and does not actually have any functionality.
To Reproduce
Call cfbfastR::cfbd_team_info(year=2019)
and cfbfastR::cfbd_team_info(year=2023)
and view results. They will be the same.
Expected behavior
The call with year=2019 should give a list of teams that are active in 2019, and the call with year=2023 should give a list of teams that are active in 2023.
The first screenshot shows the swaggerUI docs for the CFBDATA API. As seen, there is no query parameter for year, only conference.
The second screenshot shows the source code for the teams endpoint in the cfbdata codebase. There is no filter for year, only for conference. This can be seen here https://github.com/CFBD/cfb-api/blob/main/app/team/team.controller.js