Fix rank_videos

pull/3/head
Omar Roth 7 years ago
parent dc45fbfad6
commit ea044ec2da

@ -195,7 +195,7 @@ def rank_videos(db, n)
published = rs.read(Time)
# Exponential decay, older videos tend to rank lower
temperature = wilson_score * Math.exp(-0.02*((Time.now - published).hours))
temperature = wilson_score * Math.exp(-0.000005*((Time.now - published).total_minutes))
top << {temperature, id}
end
end

Loading…
Cancel
Save