Move the display to attendances
This commit is contained in:
@@ -25,6 +25,8 @@ class ScrapeTogglJob < ApplicationJob
|
||||
)
|
||||
|
||||
lectures.each do |lecture|
|
||||
return if lecture.attendance.present?
|
||||
|
||||
entries_data.each do |entry|
|
||||
concurrent_time_entry = entry['time_entries'].find do |inner_entry|
|
||||
(Time.new(inner_entry['start']) - lecture.start_time) < 10.minutes
|
||||
|
||||
Reference in New Issue
Block a user