mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-07-26 20:20:15 +00:00
Research: after lolesports began marking matches completed without publishing results, evaluated independent score sources. Established that wrappers of lolesports (lolesportsapi.com, Pupix, Apify) inherit the gap, and that getCompletedEvents/getStandings are equally stale, so only a source with its own ingestion helps. Leaguepedia is the only free candidate; commercial providers run $2k-10k/mo. Plan: 4 phases for filling missing gameWins/outcome from Leaguepedia's Cargo API. lolesports stays authoritative for schedule and for any score it does publish. Additive throughout - every failure path degrades to the existing "score pending" line. Joins on team name plus date rather than team codes: Riot already sends Team.Name matching Leaguepedia's Team1/Team2, which removes the code mapping table and the per-split OverviewPage handling that the research had flagged as the main maintenance burden. Phase 1 is a hard gate. Fandom rate-limited and then refused the connection during research, so it was never confirmed that Leaguepedia actually holds the scores Riot is missing. That check can cancel the plan. Plan is pre-validation. A verification pass found three items not yet recorded in the files: slices.ContainsFunc in phase 4 has no precedent in this repo (explicit loops are the house style), the TTL index citation should read startup.go:35-52, and the Bo2 tie handling in phase 3 is unnecessary - all 26 allowlisted-league events are Bo3 with zero ties.