mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix rank_videos
This commit is contained in:
parent
dc45fbfad6
commit
ea044ec2da
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue