mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-31 14:11:54 +05:30
Fix rank_videos
This commit is contained in:
@@ -195,7 +195,7 @@ def rank_videos(db, n)
|
|||||||
published = rs.read(Time)
|
published = rs.read(Time)
|
||||||
|
|
||||||
# Exponential decay, older videos tend to rank lower
|
# 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}
|
top << {temperature, id}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user