change list all courses function to list only courses that are active

This commit is contained in:
Juan Roig 2024-01-11 11:33:48 -05:00
parent 6b0ed0f177
commit e9c76998dc

View File

@ -79,7 +79,7 @@ func init_aplus_toolid(course_id int) error {
} }
func list_all_courses() { func list_all_courses() {
all_courses := fmt.Sprintf("%s/courses?access_token=%s&per_page=100", base_link, token) all_courses := fmt.Sprintf("%s/courses?access_token=%s&enrollment_state=active&per_page=100", base_link, token)
canvas_courses := get_courses(token, all_courses, client) canvas_courses := get_courses(token, all_courses, client)