This commit is contained in:
lilyissillyyy
2025-08-16 22:52:04 -04:00
parent 1d4454700b
commit 275bc2f965
+3 -1
View File
@@ -2,6 +2,7 @@ const request = require('node-superfetch');
const cheerio = require('cheerio');
const fs = require('fs');
const path = require('path');
const { checkFileExists } = require('../util/Util');
const rounds = ['jeopardy_round', 'double_jeopardy_round', 'final_jeopardy_round'];
module.exports = class JeopardyScrape {
@@ -92,7 +93,8 @@ module.exports = class JeopardyScrape {
}
async checkForUpdates() {
this.importData();
const fileExists = await checkFileExists(path.join(__dirname, '..', 'jeopardy.json'));
if (fileExists) this.importData();
const cluesBefore = this.clues.length;
const latestSeason = this.seasons[this.seasons.length - 1];
const seasons = await this.fetchSeasons();