Add in lecture time popover

This commit is contained in:
2023-10-06 20:49:53 +01:00
parent fda26e3b53
commit 41e3eebe52
4 changed files with 17 additions and 4 deletions
+5
View File
@@ -5,4 +5,9 @@ class Attendance < ApplicationRecord
:concurrent,
:catchup
]
def duration
toggl_data['time_entries'].sum { |entry| entry['seconds'] }
.seconds
end
end