Allow for scraping toggl entries for specific courses only, change default to be active courses and add a new action to allow manual re-scraping in the case of errors.
Build and Publish Docker Container / build (push) Successful in 5m49s
Build and Publish Docker Container / build (push) Successful in 5m49s
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
class ScrapeTogglJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(*args)
|
||||
courses = Course.all
|
||||
def perform(course_ids)
|
||||
courses = Course.where(id: course_ids)
|
||||
|
||||
courses.each do |course|
|
||||
self.scrape_course(course)
|
||||
|
||||
Reference in New Issue
Block a user