jpmayer / fantasy-chrome-extension

Chrome Extension for Creating LM Note Content in ESPN Fantasy Football Leagues
MIT License
39 stars 13 forks source link

Database update skipping seasons #108

Open ktt1994 opened 6 years ago

ktt1994 commented 6 years ago

Initial update to database skips seasons when data is imported

jpmayer commented 6 years ago

I have not seen this before unless the seasons are before 2007, which ESPN does not seem to keep the data for in the APIs. Could that be the case?

Fearing13 commented 6 years ago

My league history also has missing seasons. It shows only two trophies, when there should be six.

jpmayer commented 6 years ago

Normally the trophies not showing up and data not being shown is because the database upload was stopped before it finished, normally by the popup form being closed early. Try to delete the database and upload again

jpmayer commented 6 years ago

If reuploading provides the same (wrong) results, send me your league id so i can investigate further

ktt1994 commented 6 years ago

League history begins in 2014. The upload previously would stop a few games into the 2017 season then jump to the current season.

Now upload jumps seemingly randomly between matchups. Hyperlink to league.

jpmayer commented 6 years ago

The uploading doesnt go in exact order, if it did it would go much much slower. The matchups are uploaded as ESPN returns the data, it can jump around

jpmayer commented 6 years ago

I just tried to run the extension on your league but previous seasons are still private so i cant do it

Fearing13 commented 6 years ago

If reuploading provides the same (wrong) results, send me your league id so i can investigate further

Here is my league.

I deleted and re-uploaded the database, with the same results. Only 2 trophies showing for the 6 years of the league thus far. Thanks for the help! Much appreciated.

jpmayer commented 6 years ago

Okay thanks for providing the league details, I am seeing missing trophies in the table, though it looks like it still grabbed all the games, seems like you guys switched from 2 week playoff matchups to 1 week playoff matchups a couple years ago and thats what is causing the issues, though I thought we had cases for that. I will look into this further when I have time and provide a fix

Fearing13 commented 6 years ago

Thanks @jpmayer

I'll keep an eye out for an update from you.