mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
ACTUALLY fix it this time (#241)
This commit is contained in:
parent
a85d9b7cab
commit
3b224cabce
1 changed files with 1 additions and 4 deletions
|
|
@ -220,12 +220,9 @@ class StaticPagesController < ApplicationController
|
|||
filters.each do |filter|
|
||||
group_by_time = current_user.heartbeats.group(filter).duration_seconds
|
||||
result[filter] = group_by_time.sort_by { |k, v| v }
|
||||
.reverse.map(&:first)
|
||||
.map { |k, _| %i[language category project].include?(filter) ? k : k.capitalize }
|
||||
.reverse.map(&:first)
|
||||
.compact_blank
|
||||
.map do |k, v|
|
||||
[ %i[language category project].include?(filter) ? k : k.capitalize, v ]
|
||||
end
|
||||
|
||||
if params[filter].present?
|
||||
filter_arr = params[filter].split(",")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue