Fix bug in toggl scraping
Some checks failed
Build and Publish Docker Container / build (push) Failing after 5m4s
Some checks failed
Build and Publish Docker Container / build (push) Failing after 5m4s
This commit is contained in:
parent
04e1496c04
commit
5b74f1380b
@ -24,10 +24,12 @@ class ScrapeTogglJob < ApplicationJob
|
||||
end_time: Time.new('2024-01-01')
|
||||
)
|
||||
|
||||
puts("Entries data for #{course.title}: #{entries_data}")
|
||||
|
||||
return if entries_data.empty?
|
||||
|
||||
lectures.each do |lecture|
|
||||
return if lecture.attendance.present?
|
||||
next if lecture.attendance.present?
|
||||
|
||||
entries_data.each do |entry|
|
||||
concurrent_time_entry = entry['time_entries'].find do |inner_entry|
|
||||
|
||||
Loading…
Reference in New Issue
Block a user