fix: total time label on projects page (#1071)

This commit is contained in:
Mat Manna 2026-03-14 16:53:43 +00:00 committed by GitHub
parent 28fa174861
commit c4bf861fa1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,