cwendt94 / espn-api

ESPN Fantasy API! (Football, Basketball)
MIT License
614 stars 198 forks source link

League current_week field returns 0 #471

Open TalkAboutOdd opened 1 year ago

TalkAboutOdd commented 1 year ago

Sport

Football

Summary

Getting the league current week field returns 0, despite the league being multiple weeks in. This is also impacting the available keys within a player's stats dict, with only 0,1 being available. Problem occurs in both a regularly operating league, as well as an "empty" league used to keep all players within the free agents category.

Logs/Data

No response

TalkAboutOdd commented 1 year ago

nfl_week also returns 0

TalkAboutOdd commented 1 year ago

behavior is inconsistent, players occasionally show up with three weeks worth of stats but no fourth week and/or projections

TalkAboutOdd commented 1 year ago

Player's returned via player_info do not contain projection info, yet players returned via free_agents or team.roster do

cwendt94 commented 1 year ago

Thats strange, my league is returning the correct week. Is it still happening now? Maybe ESPN had a weird bug going on at that time.

tkauffman42 commented 1 year ago

Has your league been started? I ran into the same issue with a league I use, like you, as an open league for generating data. If I am using the league that I am participating in, it returns NFL Week and the played week correctly

shaggycamel commented 11 months ago

My league.current_week instance seems to increment one per day. If this is, in fact, what it is supposed to reflect, should it renamed to current_day?

cwendt94 commented 11 months ago

Mine is currently showing the current week 9 what type of league is yours?

shaggycamel commented 11 months ago

The NBA league. Mine is showing nine too.