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

This commit is contained in:
2024-02-07 10:08:01 +00:00
parent 52d11a41ab
commit 351694df12
5 changed files with 21 additions and 3 deletions
@@ -10,6 +10,11 @@ module Admin
redirect_to admin_course_url(requested_resource), notice: "Filled in default live video URL"
end
def redo_toggl_entries
requested_resource.redo_toggl_entries!
redirect_to admin_course_url(requested_resource), notice: "Redid Toggl entries"
end
# Overwrite any of the RESTful controller actions to implement custom behavior
# For example, you may want to send an email after a foo is updated.
#