Skip to content

0.7.1: a matchup name finds its fixture - #49

Merged
ralyodio merged 1 commit into
mainfrom
matchups
Sep 10, 2026
Merged

0.7.1: a matchup name finds its fixture#49
ralyodio merged 1 commit into
mainfrom
matchups

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

"NFL: Chiefs vs Bills", "Lakers @ Celtics", "Rangers at Celtic 19:45" are how playlists name a game, and the sports collection holds it as "Buffalo Bills at Kansas City Chiefs". GET /api/v1/match?q=NFL%3A%20Chiefs%20vs%20Bills returned nothing.

The name parser now reads two sides and a league out of such a name (parsed.kind: 'fixture', teams, league), and match answers it from the fixtures in the window (36 h back, a week ahead, or the day asked for with date=YYYY-MM-DD) by team-name agreement in either order: abbreviations, short names, full names, "Man Utd", diacritics folded. Both sides is a score near one, nearer kickoff nearer one, in play first, +0.05 when the league agrees; one side is 0.45, below the floor callers use. A name with a separator and no fixture behind it ("Alien vs Predator") falls back to the match it always had. date is on the API, the CLI (nichedb match --date) and MCP match_items.

800 tests pass, 12 of them against a real Postgres with the migrations and pg_trgm.

🤖 Generated with Claude Code

https://claude.ai/code/session_014X1XCwt5iD3nqZfbddZqEP

"NFL: Chiefs vs Bills", "Lakers @ Celtics", "Rangers at Celtic 19:45"
are how playlists name a game, and the sports collection holds it as
"Buffalo Bills at Kansas City Chiefs". The name parser reads two sides
and a league out of such a name now, and match answers it from the
fixtures in the window (a day and a half back, a week ahead, or the
day asked for with date=) by team-name agreement in either order:
both sides is a score near one, nearer kickoff nearer one, in play
first; one side is 0.45, below the floor callers use. A name with a
separator and no fixture behind it, "Alien vs Predator", falls back to
the match it always had.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014X1XCwt5iD3nqZfbddZqEP
@ralyodio
ralyodio merged commit c86a758 into main Sep 10, 2026
3 checks passed
@ralyodio
ralyodio deleted the matchups branch September 10, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant