Add in lecture time popover
This commit is contained in:
@@ -5,4 +5,9 @@ class Attendance < ApplicationRecord
|
||||
:concurrent,
|
||||
:catchup
|
||||
]
|
||||
|
||||
def duration
|
||||
toggl_data['time_entries'].sum { |entry| entry['seconds'] }
|
||||
.seconds
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user