3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

dont compare if lfm is ==

This commit is contained in:
reality 2013-10-29 16:03:19 +00:00
parent 13a2c465ae
commit ba8a603e26

View File

@ -234,7 +234,7 @@ var lastfm = function(dbot) {
async.eachSeries(profiles, function(p1, next) {
scores[p1.id] = {};
async.eachSeries(profiles, function(p2, subnext) {
if(p1.id == p2.id || _.has(scores, p2.id) && _.has(scores[p2.id], p1.id)) {
if(p1.id == p2.id || p1.profile.lastfm == p2.profile.lastfm || _.has(scores, p2.id) && _.has(scores[p2.id], p1.id)) {
subnext();
} else {
console.log('comparing ' + p1.profile.lastfm + ' and ' + p2.profile.lastfm);