mirror of
https://codeberg.org/flpolyaplus/aplus.git
synced 2024-11-24 10:20:30 -05:00
change list all courses function to list only courses that are active
This commit is contained in:
parent
6b0ed0f177
commit
e9c76998dc
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user