derek-adair / nflgame

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

Run black, make things work for me #136

Closed gatortim closed 4 years ago

gatortim commented 4 years ago

Only real change besides the unit tests is this: return "{}season={}&seasonType={}&week={}".format(xmlurl, year, stype, week)
Was complaining about this type error when importing: nflgame/update_sched.py:46: in schedule_url return "%sseason=%d&seasonType=%s&week=%d" % (xmlurl, year, stype, week) E TypeError: %d format: a number is required, not NoneType

gatortim commented 4 years ago

Comment is just that I ran the code format tool black: https://black.readthedocs.io/en/stable/

derek-adair commented 4 years ago

I am guessing that english is not your first language.

You can download a version of this code that works with historic data by running

pip install nflgame==3.0.0