added scoring
This commit is contained in:
parent
63fe19f8e7
commit
7c1f66296a
@ -207,17 +207,18 @@ rss_braider.logger.level('error');
|
|||||||
function doFeeds() {
|
function doFeeds() {
|
||||||
console.log('Doing feeds...');
|
console.log('Doing feeds...');
|
||||||
rss_braider.processFeed('simple_test_feed', 'json', function (err, data) {
|
rss_braider.processFeed('simple_test_feed', 'json', function (err, data) {
|
||||||
|
console.log('Moving on..');
|
||||||
if (err) {
|
if (err) {
|
||||||
return console.log(err);
|
return console.log(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
var j = JSON.parse(data);
|
let j = JSON.parse(data);
|
||||||
|
|
||||||
j = processJson(j);
|
j = processJson(j);
|
||||||
/*for (let mm in j) {
|
/*for (let mm in j) {
|
||||||
console.log(mm);
|
console.log(mm);
|
||||||
}*/
|
}*/
|
||||||
var ejsOutput = ejs.compile(str)(j);
|
let ejsOutput = ejs.compile(str)(j);
|
||||||
|
|
||||||
fs.writeFile(__dirname + "/dist/" + outputFile + ".html",
|
fs.writeFile(__dirname + "/dist/" + outputFile + ".html",
|
||||||
ejsOutput,
|
ejsOutput,
|
||||||
|
Loading…
Reference in New Issue
Block a user