mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 21:05:15 +00:00
fix: total time label on projects page (#1071)
This commit is contained in:
parent
28fa174861
commit
c4bf861fa1
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ class My::ProjectRepoMappingsController < InertiaController
|
|||
project[:duration_percent] = ((project[:duration_seconds].to_f / max_duration) * 100).round(1)
|
||||
end
|
||||
|
||||
total_time = cached[:total_time].to_i
|
||||
total_time = projects.sum { |p| p[:duration_seconds] }
|
||||
|
||||
{
|
||||
total_time_seconds: total_time,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue