From e9c76998dc146ebc5f22100c972b52c70a51899d Mon Sep 17 00:00:00 2001 From: Juan Roig Date: Thu, 11 Jan 2024 11:33:48 -0500 Subject: [PATCH] change list all courses function to list only courses that are active --- canvas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canvas.go b/canvas.go index 2991ebd..02c3cc9 100644 --- a/canvas.go +++ b/canvas.go @@ -79,7 +79,7 @@ func init_aplus_toolid(course_id int) error { } 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)