Skip to content

Commit

Permalink
Fuck the CCP
Browse files Browse the repository at this point in the history
  • Loading branch information
abresler committed Dec 15, 2020
1 parent b910ea4 commit 6237c4c
Show file tree
Hide file tree
Showing 7 changed files with 321 additions and 388 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: nbastatR
Type: Package
Title: R's interface to NBA data
Version: 0.1.1504
Version: 0.1.1505
Authors@R: c(person("Alex", "Bresler", email = "[email protected]", role = c("aut", "cre")))
Description: NBA data tools for R
License: MIT + file LICENSE
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export(sl_teams)
export(spread_data)
export(standings)
export(summarise_per_minute)
export(synergy)
export(team_season_roster)
export(teams_annual_stats)
export(teams_coaches)
Expand Down
6 changes: 5 additions & 1 deletion R/bref.R
Original file line number Diff line number Diff line change
Expand Up @@ -2146,6 +2146,10 @@ bref_players_stats <-

is_awards <- table_id == "all_awards"

if (table_name == "League Awards Table") {
return(invisible())
}

if (is_ap) {
return(invisible())
}
Expand Down Expand Up @@ -2356,9 +2360,9 @@ bref_players_stats <-
dataTable = list(table_data)
)
}) %>%
suppressWarnings() %>%
mutate(urlSeasonBREF = url)


all_data
}

Expand Down
2 changes: 1 addition & 1 deletion R/new_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -17969,7 +17969,7 @@ current_schedule <-
json <-
glue::glue("https://data.nba.net/prod/v2/{slug_year}/schedule.json") %>%
as.character() %>%
.curl_chinazi()
fromJSON()

json_data <- json$league$standard

Expand Down
Loading

0 comments on commit 6237c4c

Please sign in to comment.