joeyagreco / leeger

Instant stats for any fantasy football league.
https://pypi.org/project/leeger
MIT License
57 stars 17 forks source link

Update MyFantasyLeague for playoff weeks #117

Closed Ryandaydev closed 7 months ago

Ryandaydev commented 7 months ago

Summary:

Testing All tests pass 100% (Didn't create any new tests, sorry.)

Background: @joeyagreco When I was testing Leeger with MyFantasyLeague I found that it received errors in week 17 (championship) and 18 (skipped) of my league data. That's because the schedule object is a bit different than the rest of the weeks:

Weeks 1-16 - matchup is a list[] of matchups "schedule": { "weeklySchedule": { "week": "16", "matchup": [ { "franchise": [ {...

Week 17 - matchup is a single matchup element "schedule": { "weeklySchedule": { "week": "17", "matchup": { "franchise": [... } },

Week 18 - no matchup element for a skipped week "schedule": { "weeklySchedule": { "week": "18" } },

joeyagreco commented 7 months ago

@Ryandaydev could you run a make fmt and push to format please? Thanks

Ryandaydev commented 7 months ago

@Ryandaydev could you run a make fmt and push to format please? Thanks

Done!