Skip to content

Commit

Permalink
fixing postseason DC issue #26 (#27)
Browse files Browse the repository at this point in the history
* fixing postseason DC issue #26

* Automated roster updates Thu Jan 13 07:19:05 UTC 2022

* Automated depth chart updates Thu Jan 13 07:22:20 UTC 2022

* Automated roster updates Fri Jan 14 07:18:47 UTC 2022

* Automated depth chart updates Fri Jan 14 07:21:44 UTC 2022

* Automated roster updates Sat Jan 15 07:17:53 UTC 2022

* Automated depth chart updates Sat Jan 15 07:21:31 UTC 2022

* fixing issue where postseason injuries broke update-injuries script

weeks now represented correctly in historical injury data additionally

Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: Tan Ho <38083823+tanho63@users.noreply.github.com>
  • Loading branch information
3 people committed Jan 15, 2022
1 parent 4879c25 commit 70df303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/update-depth-charts.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ if (nrow(dc_df) > 0){
),
full_name = paste(FootballName, LastName),
dplyr::across(c(Season, Week, DepthTeam, JerseyNumber), as.integer),
Week = dplyr::case_when(SeasonType == 'POST' ~ as.integer(Week) + max(as.integer(Week[SeasonType == 'REG'])),
T~as.integer(Week)),
# Week = dplyr::case_when(SeasonType == 'POST' ~ as.integer(Week) + max(as.integer(Week[SeasonType == 'REG'])),
# T~as.integer(Week)),
) |>
dplyr::select(
season = Season,
Expand Down

0 comments on commit 70df303

Please sign in to comment.