scottquach/Canvas-Assignments-Transfer-For-Todoist

Does not display courses past 100

Closed this issue · 13 comments

The courses displayed is capped at 100 and courses after the 100th are omitted and cannot be selected

Interesting - are you really enrolled in >100 courses? :)

Probably same pagination issue needs to be added.

The list shows all courses I've enrolled or audited on Canvas over five years, so yup more than 100!

Wow! Never met anyone in the wild with that issue - most schools delete courses after the semester is over, so you don't have all the active ones.

That said, we just need to add pagination, so I'll mark that as a bug and work to fix that at some point. Can't promise any timeframe as I am working on some other rework at the moment though.

@pennyshi can you try this version? I reused/added the pagination code to the select_courses
your list might be massive, sorry there isn't much I can do about that if your school is keeping everything on Canvas :)
easy_run.py.zip

If it works, then I can push to the repo, but I have no access to an account with that many courses to test :)

I figured out a way to test this, I'll see if I can get it working

Note to self: Test with artificially low return limit

hi @pennyshi , I was looking at Canvas today and they let you filter by state. Would only returning "active" courses fulfill the need?

(https://community.canvaslms.com/t5/Canvas-Resource-Documents/Canvas-Enrollment-Status-Comparison/ta-p/387055)

@stacksjb note to self to add filtering to script for only active courses.

hey so sorry for late reply! for the new zip file you uploaded I ran it and encountered this error
image

hi @pennyshi , I was looking at Canvas today and they let you filter by state. Would only returning "active" courses fulfill the need?

(https://community.canvaslms.com/t5/Canvas-Resource-Documents/Canvas-Enrollment-Status-Comparison/ta-p/387055)

I'm wondering what do you mean by this? (I don't see the option to control this, if you mean within the Canvas interface)

Go to your Canvas "All Courses" page (https://school.instructure.com/courses)

You should get three sections, with Current, Past, and Future enrollments.

"Active" courses would mean it will only return those in the "Current" section.

Hello,

I have updated the most recent version to only return courses in an "Active" state. This should resolve that issue for you in the meantime - would you let me know?

If not we can investigate adding iterations, but seems to be a pretty edge use case :)