Skip to content

Commit ac17407

Browse files
committed
fixing CBS dst id
1 parent c56c6c3 commit ac17407

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

R/source_scrapes.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ scrape_cbs = function(pos = c("QB", "RB", "WR", "TE", "K", "DST"), season = NULL
105105
} else {
106106
out_df$team = cbs_id
107107
out_df$data_src = "CBS"
108-
dst_ids = ff_player_data[ff_player_data$position == "Def", c("id", "team")]
109-
dst_ids$team[dst_ids$team == "OAK"] = "LV"
110-
out_df$id = dst_ids$id[match(cbs_id, dst_ids$team)]
108+
out_df$id = get_mfl_id(pos = "DST", team = rename_vec(cbs_id, unlist(team_corrections)))
111109
out_df$pos = position
112110
out_df$src_id = player_ids$cbs_id[match(out_df$id, player_ids$id)]
113111
}

0 commit comments

Comments
 (0)