Open thurask opened 8 years ago
Okay, found some bugs with the initial commit. Had to move JSON loading into jsonhandler.py
, then have main.py
and writers.py
work from there. Otherwise we'd get cyclical imports and other bad stuff.
As a result, this works not just with python main.py
, but also regular old soccer
.
Continuing from #83, replace the league*.py files with leagues.json, which is similar in structure to teams.json.
Rewrite
main.py
andwriters.py
to accomodate.As well, add league codes to the
--list
arg, like so:Lastly, extend
--lookup
arg to work for leagues as well, in the spirit of #85.