Skip to content

Commit c56c6c3

Browse files
committed
bug fix for retrieving scrape week
1 parent d8dab61 commit c56c6c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/schedule_data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ first_last_games = get_first_last_kickoff()
3636

3737
get_scrape_starts = function(first_last_games) {
3838
if(missing(first_last_games)) {
39-
first_last_games = first_last_games
39+
first_last_games = ffanalytics:::first_last_games
4040
}
4141
first_last_df = dplyr::bind_rows(first_last_games)
4242
last_vec = first_last_df$last
@@ -51,7 +51,7 @@ scrape_start_date = get_scrape_starts(first_last_games)
5151

5252
get_scrape_week = function(scrape_start_date) {
5353
if(missing(scrape_start_date)) {
54-
scrape_start_date = scrape_start_date
54+
scrape_start_date = ffanalytics:::scrape_start_date
5555
}
5656
sum(Sys.Date() >= scrape_start_date)
5757
}

0 commit comments

Comments
 (0)