Tracking down some MyFantasyLeague info about divisions #118
Ryandaydev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@joeyagreco I saw a TODO note on the MyFantasyLeagueLeagueLoader.py that was added when division support was added in #105. The todo is
# TODO: see if there are cases where MFL leagues do NOT have divisions
I opened a ticket with MyFantasyLeague and then created a new test league to confirm and found out the following:
"divisions": {}
element is excluded from the export/league endpoint."franchise"[{}]
Examples with 2 divisions in league:
export/league endpoint, League element:
"league": { "starters": {}, "bbidMinimum": "2", "standingsSort": "PCT,PTS,", "bbidIncrement": "1", "id": "16051", "endWeek": "18", "playerLimitUnit": "LEAGUE", "bbidConditional": "No", "currentWaiverType": "BBID_FCFS", "usesSalaries": "0", "usesContractYear": "0", "maxWaiverRounds": "4", "divisions": { "count": "2", "division": [ { "name": "Division One- Pigskin Prodigals", "id": "00" }, { "id": "01", "name": "Division Two- Gridiron Gurus" } ] },
export/league endpoint, franchises element:
"franchises": { "franchise": [ { "waiverSortOrder": "2", "country": "US", "bbidAvailableBalance": "60.00", "division": "00", "id": "0001", "name": "bob's burgers", "owner_name": "joe smith" },
Examples with 1 division in league:
export/league endpoint, League element:
(no division element at all)
export/league endpoint, franchises element:
"franchises": { "franchise": [ { "id": "0001", "username": "boyband", "name": "Franchise 1", "waiverSortOrder": "12", "mail_event": "DRAFT,IR,LINEUP,MFL_NEWS,ONTHECLOCK,PROMO_MESSAGES,RESULT,TAXI,TBAIT,TRADE,WAIVER," },
Beta Was this translation helpful? Give feedback.
All reactions