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