davekats / canvas-student-data-export

Python script to download all of your student data from Canvas LMS
123 stars 33 forks source link

Fixes for submission exporting #27

Closed MatthiasPortzel closed 6 months ago

MatthiasPortzel commented 6 months ago

Would close #19. As can be seen in the log on that issue, getting all submissions for a course now returns Forbidden instead of Unauthorized.

The canvasapi wrapper also updated at some point to make attachment a File instead of a dictionary.

With these changes I can pull submissions again.

I still get the Skipping file download that gave the following error: {"status":"unauthorized","errors":[{"message":"user not authorized to perform that action"}]} message (mentioned in the issue) but that seems unrelated.

MatthiasPortzel commented 6 months ago

I guess to elaborate: even before making this change I had no problem pulling modules. So perhaps there's an unrelated issue some people are running into in #19. However, this PR resolves the "Failed to retrieve submissions for this assignment Forbidden" messages and allows pulling submissions.

davekats commented 6 months ago

Thank you for your contribution!!