kfl / staffeli_nt

Staffeli NT Technology
MIT License
8 stars 7 forks source link

canvasapi 3.0.0 breaks staffeli #59

Open madsobitsoe opened 2 years ago

madsobitsoe commented 2 years ago

We use the canvasapi package. They just released version 3.0.0: https://github.com/ucfopen/canvasapi/releases

One of the breaking changes:

Update Submission to return attachments as File objects instead of dictionaries. (Thanks, [@laitingsheng (https://github.com/laitingsheng))

We exploit/use the submission-attachments being dictionaries, at least in download.py

The easy fix is to change requirements.txt st. canvasapi version 2.2.0 is required. Currently we require >=2.0.0

The harder fix is to figure out why they changed it and how/if we can update our code to respect the change.