Fix us-election

This commit is contained in:
Dragon Fire
2024-03-28 23:50:37 -04:00
parent 3ff53069b9
commit ea6a3f0788
+1 -1
View File
@@ -47,7 +47,7 @@ module.exports = class UsElectionCommand extends Command {
const { text } = await request.get('https://electionbettingodds.com/');
const $ = cheerio.load(text);
const canidates = [];
const tables = $('table').eq(18).children().first().children();
const tables = $('table').eq(0).children().first().children();
for (let i = 1; i < tables.length; i++) {
let name = tables.eq(i).children().first().text().trim().match(/(.+) details/);
if (name) name = name[1];