Skip to content

Commit

Permalink
Move stop_predraft() to current season only
Browse files Browse the repository at this point in the history
  • Loading branch information
k5cents committed Sep 18, 2021
1 parent 1393ef0 commit 3ccfee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/roster.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ team_roster <- function(leagueId = ffl_id(), leagueHistory = FALSE, ...) {
view = "mRoster",
...
)
stop_predraft(dat)
if (leagueHistory) {
lapply(dat$teams, function(x) lapply(x$roster$entries, out_roster))
} else {
stop_predraft(dat)
lapply(dat$teams$roster$entries, out_roster)
}
}
Expand Down

0 comments on commit 3ccfee5

Please sign in to comment.