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:
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user