When ESPN's API returns teams directly on the conference group (no division children), all teams got division="" so only one team globally received divisionRank=1. Fix by resolving division from a hardcoded team-name map as a fallback, and scoping divisionRank computation per conference+division to prevent AL/NL teams from sharing a group. https://claude.ai/code/session_01288dkXYwKJUfXrEhPd8rmo |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| afl.ts | ||
| epl.ts | ||
| espn.ts | ||
| f1.ts | ||
| index.ts | ||
| mlb.ts | ||
| mls.ts | ||
| nba.ts | ||
| nhl.ts | ||
| thesportsdb.ts | ||
| types.ts | ||
| wnba.ts | ||