Skip to content

ff_scoringhistory defaults to 2020 as final year #347

@CaRdanski

Description

@CaRdanski

Hey Tan! We discussed this on the discord, but likely a quick fix: in the code below, if i don't specify the season parameter for ff_scoring history, it defaults to 2020 as the final season - i think you mentioned it's currently hardcoded that way.

Code: (Reprex would just be removing the season parameter in the ff_scoringhistory function)
lg_conn <- mfl_connect(season = 2021, #could also use ff_connect()
league_id = 24001, #this is my personal dynasty league
rate_limit_number = 3,
rate_limit_seconds = 6)

player_scoring <- ff_scoringhistory(lg_conn, season = 2021) %>%
filter(season == 2021) %>%
group_by(season,mfl_id,player_name,pos,team) %>%
summarise(season_fantasy_points = sum(points))

follow up question on

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    release pending ⏳this feature/bug is resolved in the development version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions