espn-api icon indicating copy to clipboard operation
espn-api copied to clipboard

League current_week field returns 0

Open TalkAboutOdd opened this issue 2 years ago • 8 comments

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 avatar Sep 30 '23 17:09 TalkAboutOdd

nfl_week also returns 0

TalkAboutOdd avatar Sep 30 '23 17:09 TalkAboutOdd

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

TalkAboutOdd avatar Sep 30 '23 20:09 TalkAboutOdd

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

TalkAboutOdd avatar Sep 30 '23 21:09 TalkAboutOdd

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.

cwendt94 avatar Oct 02 '23 15:10 cwendt94

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

tkauffman42 avatar Oct 05 '23 19:10 tkauffman42

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?

shaggycamel avatar Nov 01 '23 03:11 shaggycamel

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

cwendt94 avatar Nov 01 '23 16:11 cwendt94

The NBA league. Mine is showing nine too.

shaggycamel avatar Nov 01 '23 20:11 shaggycamel