mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix us-election
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user