Skip to content

Commit 0f67571

Browse files
authored
Merge pull request #102 from nflverse/titans-rebranding
Titans rebranding
2 parents b69320a + e84499a commit 0f67571

4 files changed

Lines changed: 15 additions & 7 deletions

File tree

R/update_teams_colors_logos.R

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
cli::rule("Start teams data update process")
22

33
# Load currently released data
4-
released <- data.table::fread(paste0(
5-
"https://github.com/nflverse/nflverse-data/",
6-
"releases/download/teams/teams_colors_logos.csv"
7-
), na.strings = "")
4+
released <- data.table::fread(
5+
paste0(
6+
"https://github.com/nflverse/nflverse-data/",
7+
"releases/download/teams/teams_colors_logos.csv"
8+
),
9+
na.strings = "",
10+
keepLeadingZeros = TRUE
11+
)
812

913
# Load data in nflverse-pbp repo
10-
repo_data <- data.table::fread("teams_colors_logos.csv", na.strings = "")
14+
repo_data <- data.table::fread(
15+
"teams_colors_logos.csv",
16+
na.strings = "",
17+
keepLeadingZeros = TRUE
18+
)
1119

1220
# The workflow should only trigger if the data changed but it doesn't hurt
1321
# to make sure we only update the data if the comparison shows that something
@@ -21,7 +29,7 @@ if (!identical(released, repo_data)) {
2129
file_name = "teams_colors_logos",
2230
nflverse_type = "teams data",
2331
release_tag = "teams",
24-
file_types = c("rds", "csv", "parquet", "qs", "csv.gz"),
32+
file_types = c("rds", "csv", "parquet", "csv.gz"),
2533
)
2634
} else {
2735
cli::cli_alert_success("Nothing changed. Teams data is up to date.")

teams_colors_logos.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ SEA,Seattle Seahawks,4600,Seahawks,NFC,NFC West,#002244,#69be28,#a5acaf,#001532,
3333
SF,San Francisco 49ers,4500,49ers,NFC,NFC West,#AA0000,#B3995D,#000000,#a5acaf,https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/San_Francisco_49ers_logo.svg/100px-San_Francisco_49ers_logo.svg.png,https://a.espncdn.com/i/teamlogos/nfl/500/sf.png,https://github.com/nflverse/nflverse-pbp/raw/master/wordmarks/SF.png,https://github.com/nflverse/nflverse-pbp/raw/master/NFC.png,https://raw.githubusercontent.com/nflverse/nflverse-pbp/master/NFL.png,https://github.com/nflverse/nflverse-pbp/raw/master/squared_logos/SF.png
3434
STL,St. Louis Rams,2510,Rams,NFC,NFC West,#003594,#FFD100,#001532,#af925d,https://upload.wikimedia.org/wikipedia/en/thumb/8/8a/Los_Angeles_Rams_logo.svg/100px-Los_Angeles_Rams_logo.svg.png,https://a.espncdn.com/i/teamlogos/nfl/500/lar.png,https://github.com/nflverse/nflverse-pbp/raw/master/wordmarks/STL.png,https://github.com/nflverse/nflverse-pbp/raw/master/NFC.png,https://raw.githubusercontent.com/nflverse/nflverse-pbp/master/NFL.png,https://github.com/nflverse/nflverse-pbp/raw/master/squared_logos/STL.png
3535
TB,Tampa Bay Buccaneers,4900,Buccaneers,NFC,NFC South,#A71930,#322F2B,#000000,#ff7900,https://upload.wikimedia.org/wikipedia/en/thumb/a/a2/Tampa_Bay_Buccaneers_logo.svg/100px-Tampa_Bay_Buccaneers_logo.svg.png,https://a.espncdn.com/i/teamlogos/nfl/500/tb.png,https://github.com/nflverse/nflverse-pbp/raw/master/wordmarks/TB.png,https://github.com/nflverse/nflverse-pbp/raw/master/NFC.png,https://raw.githubusercontent.com/nflverse/nflverse-pbp/master/NFL.png,https://github.com/nflverse/nflverse-pbp/raw/master/squared_logos/TB.png
36-
TEN,Tennessee Titans,2100,Titans,AFC,AFC South,#002244,#4B92DB,#c60c30,#a5acaf,https://github.com/nflverse/nflverse-pbp/raw/master/titans.png,https://a.espncdn.com/i/teamlogos/nfl/500/ten.png,https://github.com/nflverse/nflverse-pbp/raw/master/wordmarks/TEN.png,https://github.com/nflverse/nflverse-pbp/raw/master/AFC.png,https://raw.githubusercontent.com/nflverse/nflverse-pbp/master/NFL.png,https://github.com/nflverse/nflverse-pbp/raw/master/squared_logos/TEN.png
36+
TEN,Tennessee Titans,2100,Titans,AFC,AFC South,#4495D2,#D50A0A,,,https://upload.wikimedia.org/wikipedia/en/thumb/5/53/Tennessee_Titans_Logo_2026.svg/250px-Tennessee_Titans_Logo_2026.svg.png,https://a.espncdn.com/i/teamlogos/nfl/500/ten.png,https://github.com/nflverse/nflverse-pbp/raw/master/wordmarks/TEN.png,https://github.com/nflverse/nflverse-pbp/raw/master/AFC.png,https://raw.githubusercontent.com/nflverse/nflverse-pbp/master/NFL.png,https://github.com/nflverse/nflverse-pbp/raw/master/squared_logos/TEN.png
3737
WAS,Washington Commanders,5110,Commanders,NFC,NFC East,#5A1414,#FFB612,#000000,#5b2b2f,https://upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Washington_commanders.svg/100px-Washington_commanders.svg.png,https://a.espncdn.com/i/teamlogos/nfl/500/wsh.png,https://github.com/nflverse/nflverse-pbp/raw/master/wordmarks/WAS.png,https://github.com/nflverse/nflverse-pbp/raw/master/NFC.png,https://raw.githubusercontent.com/nflverse/nflverse-pbp/master/NFL.png,https://github.com/nflverse/nflverse-pbp/raw/master/squared_logos/WAS.png

teams_colors_logos.rds

-84 Bytes
Binary file not shown.

wordmarks/TEN.png

81.6 KB
Loading

0 commit comments

Comments
 (0)