mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
Hide entries on the leaderboard under a minute
This commit is contained in:
parent
84e080033f
commit
89d5ddeba7
1 changed files with 2 additions and 0 deletions
|
|
@ -26,6 +26,8 @@ class LeaderboardUpdateJob < ApplicationJob
|
|||
.group(:user_id)
|
||||
.duration_seconds
|
||||
|
||||
entries_data = entries_data.filter { |_, total_seconds| total_seconds > 60 }
|
||||
|
||||
entries_data = entries_data.map do |user_id, total_seconds|
|
||||
{
|
||||
leaderboard_id: leaderboard.id,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue