Match a race's circuit on Jolpica's circuitId, not its name
Jolpica renamed Losail to Lusail International Circuit, so the name match found no circuit and every Qatar Grand Prix poster, thumb and track image answered 404 (reported by Brad Johnston for 2025 and 2026; every season since 2021 failed). Names drift, ids do not: each circuit in circuits.json now carries its ergastId, the lookup keys on it, and the poster's zoom fallback resolves our circuit slug the same way. The name match also sent Caesars Palace (1981-82) to the Las Vegas Strip circuit; by id it resolves to nothing, as there is no layout of it. tests/ checks every circuit has one unique ergastId and that a race resolves by id; the merge check runs it. Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
This commit is contained in:
Reference in New Issue
Block a user