mattdodge / yahoofantasy

A Python SDK for the Yahoo! Fantasy Sports API
65 stars 18 forks source link

Add helper property to league for past seasons #38

Closed mattdodge closed 1 year ago

mattdodge commented 1 year ago

Fixes #28

This adds a way to access past seasons on a league object, if they are configured correctly by the league commissioner.

>>> lg = ctx.get_leagues('mlb', 2022)[0]
>>> lg.past_league_id
(404, 12345)