Remove debug statement, closes #156, story decay to 32 hours

This commit is contained in:
Nathan Leniz
2015-03-22 20:11:37 +09:00
parent 31ce7b686a
commit fb5e8dc387

View File

@ -19,7 +19,7 @@ function hotRank(timeValue, rank) {
*/ */
var hotness; var hotness;
var z = Math.log(rank) / Math.log(10); var z = Math.log(rank) / Math.log(10);
hotness = z + (timeValue / 172800000); hotness = z + (timeValue / 115200000);
return hotness; return hotness;
} }
@ -227,8 +227,6 @@ exports.upvote = function(req, res, next) {
if (err) { if (err) {
return next(err); return next(err);
} }
// todo debug
debug('This is the user in upvote', user);
user = user.pop(); user = user.pop();
user.progressTimestamps.push(Date.now()); user.progressTimestamps.push(Date.now());
user.save(); user.save();