Skip to content

Commit

Permalink
injury update actual fix (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
guga31bb authored Sep 8, 2024
1 parent 3e59cd8 commit d2ae6c6
Show file tree
Hide file tree
Showing 2 changed files with 2 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: nflfastR
Title: Functions to Efficiently Access NFL Play by Play Data
Version: 4.6.1.9014
Version: 4.6.1.9015
Authors@R:
c(person(given = "Sebastian",
family = "Carl",
Expand Down
2 changes: 1 addition & 1 deletion R/helper_scrape_nfl.R
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ get_pbp_nfl <- function(id,
# Data in 2024 pbp introduced separate "plays" for injury updates
# These mess up some of our logic. Since they are useless, we remove them here
dplyr::filter(
!(is.na(.data$timeout_team) & stringr::str_detect(tolower(.data$play_description), "\\*\\* injury update:"))
!(is.na(.data$timeout_team) & stringr::str_starts(tolower(.data$play_description), "\\*\\* injury update:"))
) %>%
fix_posteams()

Expand Down

0 comments on commit d2ae6c6

Please sign in to comment.