Ergast Jolpica text replacement

This commit is contained in:
Rhys
2024-11-05 17:20:31 +00:00
parent 4cc1d412a3
commit 06a7aab289
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
<h3 align="center">Stewardle</h3> <h3 align="center">Stewardle</h3>
<p align="center"> <p align="center">
A Wordle-inspired game designed for the web. Players must guess the randomly selected F1 driver using statistics retrieved from the Ergast API. Created with Express and Node.js. A Wordle-inspired game designed for the web. Players must guess the randomly selected F1 driver using statistics retrieved from the Jolpica API. Created with Express and Node.js.
<br /> <br />
<a href="https://stewardle.com/">View Demo</a> <a href="https://stewardle.com/">View Demo</a>
· ·
@@ -45,7 +45,7 @@
<img src="https://raw.githubusercontent.com/ssyyhhrr/stewardle/refs/heads/main/assets/screenshot.png" width="300"/> <img src="https://raw.githubusercontent.com/ssyyhhrr/stewardle/refs/heads/main/assets/screenshot.png" width="300"/>
</p> </p>
A Wordle-inspired game designed for the web. Players must guess the randomly selected F1 driver using statistics retrieved from the Ergast API. Created with Express and Node.js. A Wordle-inspired game designed for the web. Players must guess the randomly selected F1 driver using statistics retrieved from the Jolpica API. Created with Express and Node.js.
<!-- CONTRIBUTING --> <!-- CONTRIBUTING -->
## Contributing ## Contributing

2
app.js
View File

@@ -272,7 +272,7 @@ axios.get("https://api.jolpi.ca/ergast/f1/1950/driverStandings.json?limit=1000")
let data = fs.readFileSync(driversPath) let data = fs.readFileSync(driversPath)
drivers = JSON.parse(data) drivers = JSON.parse(data)
} else { } else {
throw "Ergast API is unreachable and the drivers.json cache has not been built. Please try again when the Ergast API is online." throw "Jolpica API is unreachable and the drivers.json cache has not been built. Please try again when the Jolpica API is online."
} }
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)