Skip to content

Commit

Permalink
Fix: Fix popular algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed May 4, 2024
1 parent 33bb00f commit 9cf4876
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions backend/app/controllers/sonolus/levels_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ def info
[
chart.id,
likes.count { |like| like.chart_id == chart.id } /
[
(
(
[
(
(Time.now.to_i - chart.published_at.to_i) / 1.day.to_f
).floor - 3
),
1
].max.to_f
) - 3,
0
].max.to_f + 1
)
]
end

Expand Down

0 comments on commit 9cf4876

Please sign in to comment.