-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ff_starters() is missing data on no-opponent weeks in 2022. #393
Comments
API changed to not return bye weeks as matchups. ffscrapr::mfl_getendpoint(
ffscrapr::mfl_connect(season = 2022, league_id = 22686), "weeklyResults", W = week, YEAR = year) |>
purrr::pluck("content", "weeklyResults") |>
str(max.level = 2)
# List of 3
# $ matchup :List of 14
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# ..$ :List of 2
# $ franchise:List of 4
# ..$ :List of 7
# ..$ :List of 7
# ..$ :List of 7
# ..$ :List of 7
# $ week : chr "13" No timeline on when I'll be able to get to this but it seems solvable. |
And API changes don’t affect previous seasons? |
Apparently not. |
Should I be expecting more like weeks or months or years? 🤣 |
MFL informed that this was actually because I didn't have the matchup listed as "Team X vs. Bye" for that week. Apparently that makes as difference on their end. But still this API is different than what they show starts-wise on their reports. |
Describe the bug
ff_starters() function is skipping submitted starters in 2022 MFL league in some cases (apparently, when the franchise starting them does not have a weekly opponent, e.g. a Playoff Bye)
Reprex
ff_starters(mfl_connect(season = 2022, league_id = 22686, user_agent = "mikeyfili", rate_limit_number = 3, rate_limit_seconds = 6), 1:16, 2022)
`mfl_connect(season = 2022, league_id = 22686, user_agent = "mikeyfili", rate_limit_number = 3, rate_limit_seconds = 6)`
Expected behavior
The above function should show that Patrick Mahomes had starts for Chicago Bears franchise in Weeks 13 and 14. However, this data is simply missing from the df, presumably because the Chicago Bears franchise did not have a weekly opponent (on account of Playoff bye) in weeks 13 or 14. They did, however, submit starting lineups with Mahomes as starter. This appears to be happening for all starters on such teams in this league for the weeks they didn't have weekly opponents. As far as I can tell, this problem is not occurring in 2021 MFL with the same league ID. Not sure why it's a "new issue" in 2022 leagues.
Session information
Please copy the output of
ffscrapr::ffverse_sitrep()
into the box below.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: