Skip to content

Commit

Permalink
Rename defaultPositionId to defaultPosition
Browse files Browse the repository at this point in the history
Progress to #31
  • Loading branch information
k5cents committed Oct 19, 2021
1 parent 6b56cfc commit 79c7f6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/players.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ list_players <- function(leagueId = ffl_id(),
out$draftRanksByRankType <- NULL
out$rankings <- NULL
out$proTeamId <- pro_abbrev(out$proTeamId)
out$defaultPositionId <- pos_abbrev(out$defaultPositionId)
out$defaultPosition <- pos_abbrev(out$defaultPositionId)
out$injuryStatus <- substr(out$injuryStatus, 1, 1)
out$percentOwned <- out$ownership$percentOwned
out$percentChange <- out$ownership$percentChange
Expand All @@ -170,7 +170,7 @@ list_players <- function(leagueId = ffl_id(),
firstName = pl$player$firstName,
lastName = pl$player$lastName,
proTeam = pro_abbrev(pl$player$proTeamId),
defaultPositionId = pos_abbrev(pl$player$defaultPositionId),
defaultPosition = pos_abbrev(pl$player$defaultPositionId),
injuryStatus = substr(pl$player$injuryStatus, 1, 1),
percentStarted = pl$player$ownership$percentStarted / 100,
percentOwned = pl$player$ownership$percentOwned / 100,
Expand Down

0 comments on commit 79c7f6c

Please # to comment.