Permalink
Browse files

leaderboard debugging

  • Loading branch information...
1 parent da3c858 commit b9cbc946d63d74845c142f68971241e05aeee59b @zackster committed Jun 16, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/calculate_leaderboard.js
@@ -37,7 +37,7 @@
$exists: true
}
},
- function(err, listeners, callback) { // we have a list of distinct listeners
+ function(err, listeners) { // we have a list of distinct listeners
if (err) {
console.log("Error! " + err);
return;
@@ -61,6 +61,7 @@
}
self.listenerScores[thisListener] = (self.listenerScores[thisListener] || 0) + (1 * docs);
posStep+=1;
+ console.log(self.listenerScores);
if(posStep===listeners.length && negStep===listeners.length) {
callback(true);
}
@@ -180,7 +181,7 @@
};
-require("./database/singleton");
+require(".././database/singleton");
setTimeout(function() {

0 comments on commit b9cbc94

Please sign in to comment.