Skip to content

Commit

Permalink
added league_type = contest to mfl_league
Browse files Browse the repository at this point in the history
  • Loading branch information
jak3sch committed Sep 26, 2024
1 parent 72cba2d commit 6dbc1e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/mfl_league.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ ff_league.mfl_conn <- function(conn) {
.mfl_league_type <- function(league_endpoint) {
x <- league_endpoint[["keeperType"]]
if (is.null(x)) {
return(NA_character_)
x <- league_endpoint[["loadRosters"]]

if (x != "contest") {
return(NA_character_)
}
}
if (x == "none") x <- "redraft"
x
Expand Down

0 comments on commit 6dbc1e1

Please sign in to comment.