@@ -17,7 +17,11 @@ module.exports = async (ctx) => {
|
||||
for (let i = 0; i < list.length - 1; i++) {
|
||||
const content = cheerio.load(list[i]);
|
||||
|
||||
const date = content('td:nth-child(1)');
|
||||
let date = content('td:nth-child(1)').text();
|
||||
if (date.includes('-')) {
|
||||
date = date.split('-')[1];
|
||||
}
|
||||
|
||||
const resolution = content('td:nth-child(2)');
|
||||
const meeting = content('td:nth-child(3)');
|
||||
const agenda = content('td:nth-child(4)');
|
||||
@@ -29,7 +33,7 @@ module.exports = async (ctx) => {
|
||||
desc: `${country('body').html()} vetoed ${agenda.html()}. <br/> <br/> <b>Resolution: </b> ${resolution.html()}<br/><br/> <b>Meeting Record: </b> ${meeting.html()}`,
|
||||
url: resolution.find('a').attr('href'),
|
||||
guid: `scveto:${resolution.text()}`,
|
||||
pubDate: new Date(date.text()).toISOString(),
|
||||
pubDate: new Date(date).toISOString(),
|
||||
};
|
||||
|
||||
items.push(item);
|
||||
|
||||
Reference in New Issue
Block a user