Skip to content

Commit

Permalink
Update get_season_team_stats.R
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyelhabr committed Jul 20, 2024
1 parent 9362be6 commit 35aad74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/get_season_team_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ fb_season_team_stats <- function(country, gender, season_end_year, tier, stat_ty
get_each_stats_type <- function(single_season_url, time_pause=time_wait) {

# put sleep in as per new user agreement on FBref
# Sys.sleep(time_pause)
Sys.sleep(time_pause)

## Often will pull multiple if there are "Overall" and "Home/Away" tabs
competition_name <- filtered_seasons %>%
dplyr::filter(.data[["seasons_urls"]] == single_season_url) %>%
dplyr::pull(competition_name) %>%
Expand Down

0 comments on commit 35aad74

Please sign in to comment.