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__ | ||
| simulations | ||
| standings-sync | ||
| bracket-simulator.ts | ||
| brackt.server.ts | ||
| discord.ts | ||
| draft-autostart.ts | ||
| draft-discord.server.ts | ||
| draft-email.server.ts | ||
| ev-calculator.ts | ||
| icm-calculator.ts | ||
| probability-engine.ts | ||
| probability-updater.ts | ||
| sync-tournament-results.ts | ||