[deploy] Last algo fiddle I hope (#10023)

This commit is contained in:
Ben Halpern 2020-08-26 14:00:23 -04:00 committed by GitHub
parent 98f537521a
commit c06c53adfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,8 +55,8 @@ class BlackBox
def last_mile_hotness_calc(article)
score_from_epoch = article.featured_number.to_i - OUR_EPOCH_NUMBER # Approximate time of publish - epoch time
score_from_epoch / 1000 +
([article.score, 1000].min * 10) +
([article.comment_score, 1000].min * 10) -
([article.score, 1000].min * 6) +
([article.comment_score, 1000].min * 6) -
(article.spaminess_rating * 5)
end