increases comment weight on hot scores

This commit is contained in:
rgarcia
2015-11-17 09:57:47 +01:00
parent d502a64507
commit c1c9ed6340

View File

@@ -1,7 +1,7 @@
module ScoreCalculator
EPOC = Time.new(2015, 6, 15)
COMMENT_WEIGHT = 1.0/20 # 1 positive vote / x comments
COMMENT_WEIGHT = 1.0/5 # 1 positive vote / x comments
TIME_UNIT = 48.hours.to_f
def self.hot_score(date, votes_total, votes_up, comments_count)