cwendt94 / espn-api

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

Unable to get projected score of games of final completed week of season #517

Open bdf0506 opened 6 months ago

bdf0506 commented 6 months ago

Sport

Football

Summary

Unable to get the projected score of the final week - it shows the projected scores to equal the final scores.

Logs/Data

>>> from espn_api.football import League
>>> league = League(league_id=xxxxx, year=2023, espn_s2='xxxx', swid='xxxx')
>>> box_scores = league.box_scores(16)
>>> box_scores[0].away_score
134.64
>>> box_scores[0].away_projected
134.64
>>> 

But going back to week 15, all is well in the world:

>>> box_scores = league.box_scores(15)
>>> box_scores[0].away_projected
108.38999999999999
>>> box_scores[0].away_score
115.42

Trying another league, week 16 (where it is NOT the final week of the league), it pulls the week 16 projected scores without issue.

dtcarls commented 6 months ago

Having a similar issue with 2 week playoffs, I expect it is related.