The WinnerID field is a player-slot integer as string (e.g. "2"), not a bot_id. The SQL query already computes the correct winner status in p.Won field. Fixed in 3 functions: - matchToSummary: Changed Won: p.BotID == m.WinnerID to Won: p.Won - buildPlaylistMatch: Changed Won: p.BotID == m.WinnerID to Won: p.Won - ratingUpsetMagnitude: Use p.Won to identify winner instead of comparing with m.WinnerID - maxScoreDiff: Use p.Won to identify winner instead of comparing with m.WinnerID - isEvolutionBreakthrough: Find winner using p.Won before checking if evolved This fixes the issue where 984/1000 prod matches had winner_id set but all participants showed won: false. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acb-api | ||
| acb-enrichment | ||
| acb-evolver | ||
| acb-index-builder | ||
| acb-local | ||
| acb-map-evolver | ||
| acb-mapgen | ||
| acb-matchmaker | ||
| acb-wasm | ||
| acb-worker | ||