debugging braider

This commit is contained in:
Martin Donnelly 2015-07-31 12:40:01 +01:00
parent a56e1310a0
commit c5f50223c3

View File

@ -146,9 +146,9 @@ RssBraider.prototype.processFeed = function(feed_name, format, callback)
// console.log('** Go for dedupe');
console.log(source.feed_url);
/*source_articles = self.dedupe(source_articles, self.dedupe_fields);*/
source_articles = self.dedupe(source_articles, self.dedupe_fields);
source_articles = self.mdDedupe(source_articles, self.dedupe_fields);
// source_articles = self.mdDedupe(source_articles, self.dedupe_fields);
source_articles = self.date_sort(source_articles);
source_articles = source_articles.slice(0, count);
feed_articles = feed_articles.concat(source_articles);
@ -172,9 +172,9 @@ RssBraider.prototype.processFeed = function(feed_name, format, callback)
// Final Dedupe step and resort
console.log('** ERR Go for dedupe');
// feed_articles = self.dedupe(feed_articles, self.dedupe_fields);
feed_articles = self.dedupe(feed_articles, self.dedupe_fields);
feed_articles = self.mdDedupe(feed_articles, self.dedupe_fields);
// feed_articles = self.mdDedupe(feed_articles, self.dedupe_fields);
feed_articles = self.date_sort(feed_articles);