From d2dddc8ca830084aaea514ed737d0e7faf338e41 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 22 Mar 2024 12:37:31 -0400 Subject: [PATCH] Fix --- commands/events/us-election.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/events/us-election.js b/commands/events/us-election.js index e17360b1..e40ca0d0 100644 --- a/commands/events/us-election.js +++ b/commands/events/us-election.js @@ -49,7 +49,7 @@ module.exports = class UsElectionCommand extends Command { const canidates = []; const tables = $('table').eq(18).children().first().children(); for (let i = 1; i < tables.length; i++) { - let name = tables.eq(1).children().first().text().trim().match(/(.+) details/); + let name = tables.eq(i).children().first().text().trim().match(/(.+) details/); if (!name) name = 'Other'; else name = name[1]; const score = tables.eq(i).children().eq(1).children().first().text().trim();