derek-adair / nflgame

A working snapshot of nflgame (for historic purposes). This project is no longer active.
http://nflgame.derekadair.com
The Unlicense
332 stars 100 forks source link

Cannot use library at all every week #101

Closed raiyni closed 4 years ago

raiyni commented 4 years ago

I can't use nflgame until I comment out the line that is erroring in this stack trace. After I comment it out and run once, then I can re-add it back.

Traceback (most recent call last):
  File "nflgame-update-schedule", line 3, in <module>
    import nflgame.update_sched
  File "C:\python3\lib\site-packages\nflgame\__init__.py", line 95, in <module>
    import nflgame.game  # noqa
  File "C:\python3\lib\site-packages\nflgame\game.py", line 15, in <module>
    import nflgame.sched
  File "C:\python3\lib\site-packages\nflgame\sched.py", line 101, in <module>
    games, last_updated = _create_schedule()
  File "C:\python3\lib\site-packages\nflgame\sched.py", line 81, in _create_schedule
    missing_weeks = check_missing_weeks(sched, year, phase)
  File "C:\python3\lib\site-packages\nflgame\sched.py", line 38, in check_missing_weeks
    missing_weeks.remove(stored_week)
ValueError: list.remove(x): x not in list
derek-adair commented 4 years ago

Suspected duplicate of #97. I'm actually unable to even reach this error message tho...

Which nflgame-redux version are you using?

derek-adair commented 4 years ago

Alrighty i found this when testing out a fresh install. It appears that the update team logic is broken. The URI we used to scrape is redirecting to a different URL that does not contain the rosters anylonger.

Stay tuned I'll swap out this logic to access the feeds-rs right now.

derek-adair commented 4 years ago

Released under 2.0.3.