yahoo_fantasy_api icon indicating copy to clipboard operation
yahoo_fantasy_api copied to clipboard

Include Total Points in player_stats return

Open DMcP89 opened this issue 1 year ago • 0 comments

I have updated the player_stats command to leverage the League resource from the Yahoo API instead of the Player resource. This allows us to return the total points and all the stats details. There are a few other benefits IMO:

  • Makes the library more predictable as the league class is now using the league resource instead of an edge case where it uses the player resource
  • We are only gaining data here the league /stats endpoint returns the same values as the players /stats endpoint
  • Allows us to simplify the mock for player_stats

DMcP89 avatar Sep 15 '24 03:09 DMcP89