cwendt94 / espn-api

ESPN Fantasy API! (Football, Basketball)
MIT License
544 stars 183 forks source link

appliedStatsTotal returns incorrect team_score when score is changed by commissioner #403

Closed bberk closed 1 year ago

bberk commented 1 year ago

Sport

Football

Summary

When the commissioner manually changes the score of a team, the previous score is returned by the BoxScore class. box_score.py#L39 should be updated to be team_score =data[team]['totalPoints']

Logs/Data

The value being used to populate team_score: data[team]['rosterForCurrentScoringPeriod']['appliedStatTotal'] = 195.15999999999997 The field with the correct value: data[team]['totalPoints'] = 203.26

cwendt94 commented 1 year ago

Thanks for reporting this bug, I will check it out!