mirror of
https://github.com/ssyyhhrr/stewardle.git
synced 2025-11-17 22:33:39 -05:00
Driver Wins Fix
This commit is contained in:
1
app.js
1
app.js
@@ -86,6 +86,7 @@ async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function updateDrivers() {
|
async function updateDrivers() {
|
||||||
|
let drivers = {}
|
||||||
for (let i = 2000; i <= year; i++) {
|
for (let i = 2000; i <= year; i++) {
|
||||||
console.log(`Scraping F1 ${i} Season...`)
|
console.log(`Scraping F1 ${i} Season...`)
|
||||||
await axios.get(`http://ergast.com/api/f1/${i}/driverStandings.json?limit=1000`).then(res => {
|
await axios.get(`http://ergast.com/api/f1/${i}/driverStandings.json?limit=1000`).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user