espnff icon indicating copy to clipboard operation
espnff copied to clipboard

Made power rankings get current week by default and week parameter optional

Open dtcarls opened this issue 7 years ago • 2 comments

Attempting to resolve #31 Please double check functionality, not sure how to thoroughly test.

dtcarls avatar Aug 23 '17 13:08 dtcarls

Tested as follows.

$ python3 setup.py install
$ python3
>>> from espnff import League
>>> league_id = 164483
>>> year = 2016
>>> league = League(league_id, year)
>>> league.get_current_week()
18
>>> year = 2017
>>> league = League(league_id, year)
>>> league.get_current_week()
1

dtcarls avatar Aug 28 '17 17:08 dtcarls

Update to verify it works correctly going into week 2

$ python3
>>> from espnff import League
>>> league = League(164483, 2017)
>>> league.get_current_week();
2

dtcarls avatar Sep 12 '17 13:09 dtcarls