A thetvapp row joins its game by one team and the other's mascot (#196) #197

Merged
cmoriarty merged 1 commit from thetvapp-mascot-match into main 2026-11-18 21:28:39 -05:00
Owner

Fixes the duplicate rows on the Games page (#196).

What happened. On 2026-11-18 three games were listed twice. In each case a thetvapp row became its own entry, with initials for logos, beside the ESPN game it names:

thetvapp's row ESPN's game
LSU Tigers vs. Louisiana-Monroe Warhawks LSU vs. UL Monroe
Brigham Young Cougars vs. Northern Colorado Bears BYU vs. N Colorado
Penn St Nittany Lions vs. IUPUI Jaguars Penn State vs. IU Indy (renamed in 2024)

The merge joined a row only when both team names matched. Twice before, the matcher was taught one more spelling (UConn/LIU, Hawai'i). This fixes the pattern instead.

The rule. A row that no entry matches by both names joins the one entry of its sport that:

  • names one of the row's teams by the entry's full names;
  • has the other team's mascot (the last word of the full name);
  • holds no thetvapp page yet;
  • starts within four hours of the row's time.

A live row's time is now: the list gives a live row no start, and its "start" is when the app first saw it live (79 minutes late for Penn State). With two such entries (a doubleheader, a tournament day), the row stays its own entry rather than joining the wrong game.

Checks

  • Replayed on that night's live list: the three join their games, and the one thetvapp row with no ESPN entry (Florida State vs. Purdue, women's) stays its own.
  • Six new tests in backend/tests/test_thetvapp.py: the three cases, another opponent, two candidate games, and a game a day away. With the new pass switched off, the three joining tests fail.
  • make test: 1528 passed, 1 skipped. make e2e: every leg passed.
  • openspec/specs/live-game-list/spec.md gains the requirement, edited in place as small fixes are. Its strict issues are unchanged: the three long requirements from before.

Live, after the deploy: each game is listed once, and the ESPN game carries the thetvapp link.

Closes #196

🤖 Generated with Claude Code

Fixes the duplicate rows on the Games page (#196). **What happened.** On 2026-11-18 three games were listed twice. In each case a thetvapp row became its own entry, with initials for logos, beside the ESPN game it names: | thetvapp's row | ESPN's game | |---|---| | LSU Tigers vs. **Louisiana-Monroe** Warhawks | LSU vs. **UL Monroe** | | **Brigham Young** Cougars vs. Northern Colorado Bears | **BYU** vs. N Colorado | | Penn St Nittany Lions vs. **IUPUI** Jaguars | Penn State vs. **IU Indy** (renamed in 2024) | The merge joined a row only when both team names matched. Twice before, the matcher was taught one more spelling (UConn/LIU, Hawai'i). This fixes the pattern instead. **The rule.** A row that no entry matches by both names joins the one entry of its sport that: - names one of the row's teams by the entry's full names; - has the other team's mascot (the last word of the full name); - holds no thetvapp page yet; - starts within four hours of the row's time. A live row's time is now: the list gives a live row no start, and its "start" is when the app first saw it live (79 minutes late for Penn State). With two such entries (a doubleheader, a tournament day), the row stays its own entry rather than joining the wrong game. **Checks** - Replayed on that night's live list: the three join their games, and the one thetvapp row with no ESPN entry (Florida State vs. Purdue, women's) stays its own. - Six new tests in `backend/tests/test_thetvapp.py`: the three cases, another opponent, two candidate games, and a game a day away. With the new pass switched off, the three joining tests fail. - `make test`: 1528 passed, 1 skipped. `make e2e`: every leg passed. - `openspec/specs/live-game-list/spec.md` gains the requirement, edited in place as small fixes are. Its strict issues are unchanged: the three long requirements from before. **Live, after the deploy:** each game is listed once, and the ESPN game carries the thetvapp link. Closes #196 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On 2026-11-18 three games were listed twice. Thetvapp writes schools out
in full or by an older name where ESPN abbreviates or renames, and the
merge joined a row only when both team names matched:
- LSU Tigers vs. Louisiana-Monroe Warhawks / LSU vs. UL Monroe
- Brigham Young Cougars vs. Northern Colorado Bears / BYU vs. N Colorado
- Penn St Nittany Lions vs. IUPUI Jaguars / Penn State vs. IU Indy
UConn/LIU and Hawai'i were the same problem before, each fixed by one
more spelling.

A row no entry matches by both names now joins the one entry of its
sport that:
- names one of its teams by the entry's full names;
- has the other team's mascot (the last word of the full name);
- holds no thetvapp page yet;
- starts within four hours of the row's time.
A live row's time is now: the list gives a live row no start, and its
"start" is when the app first saw it live. With two such entries (a
doubleheader, a tournament day) the row stays its own entry.

Replayed on that night's live list: the three join their games, and the
one thetvapp row with no ESPN entry stays its own. make test 1528 passed,
make e2e passed.

Closes #196

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cmoriarty deleted branch thetvapp-mascot-match 2026-11-18 21:28:39 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker!197
No description provided.