Skip to content

Commit

Permalink
fix mfl scoring bug, resolves #403
Browse files Browse the repository at this point in the history
  • Loading branch information
tanho63 committed Jul 31, 2023
1 parent b2dc63a commit 839690b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: ffscrapr
Title: API Client for Fantasy Football League Platforms
Version: 1.4.8.04
Version: 1.4.8.05
Authors@R:
c(person(given = "Tan",
family = "Ho",
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ should be more robust (#397, thank you @logan-888!) (v1.4.8.02)
positions that did not have dedicated posititions (#400, thank you @mcarman8!)
(v1.4.8.03)
- `ff_scoring.mfl_conn()` now works better with new dplyr versions (#402) (v1.4.8.04)
- `ff_schedule.mfl_conn()` bug fixed re: removing bad spreads (#403) (v1.4.8.05)

# ffscrapr 1.4.8

Expand Down
2 changes: 1 addition & 1 deletion R/mfl_schedule.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ ff_schedule.mfl_conn <- function(conn, ...) {
dplyr::filter(!is.na(.data$franchise_id))

if("spread" %in% names(full_schedule)){
full_schedule$result[(!is.na(full_schedule$spread)|full_schedule$spread==0) && full_schedule$result == "T"] <- NA
full_schedule$result[(!is.na(full_schedule$spread) | full_schedule$spread==0) & full_schedule$result == "T"] <- NA
}

return(full_schedule)
Expand Down

0 comments on commit 839690b

Please sign in to comment.