mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Fix
This commit is contained in:
@@ -53,7 +53,7 @@ module.exports = class UsElectionCommand extends Command {
|
|||||||
if (!name) name = 'Other';
|
if (!name) name = 'Other';
|
||||||
else name = name[1];
|
else name = name[1];
|
||||||
const score = tables.eq(i).children().eq(1).children().first().text().trim();
|
const score = tables.eq(i).children().eq(1).children().first().text().trim();
|
||||||
const percentChange = tables.eq(i).children().eq(1).children().eq(1).text().trim() || 0;
|
const percentChange = tables.eq(i).children().eq(1).children().eq(1).text().trim() || '-0.0%';
|
||||||
canidates.push({ name, score, percentChange });
|
canidates.push({ name, score, percentChange });
|
||||||
}
|
}
|
||||||
return canidates;
|
return canidates;
|
||||||
|
|||||||
Reference in New Issue
Block a user