canvasapi icon indicating copy to clipboard operation
canvasapi copied to clipboard

Improving `canvasapi.submission.Submission`

Open laitingsheng opened this issue 2 years ago • 0 comments

Improving canvasapi.submission.Submission

Actually, the Submission object returned by the Canvas API will potentially contain an attachment attribute, which is, in fact, a list of File objects.

Currently, the created Submission object will store it as a list of plain Python dict parsed from the returned JSON.

Expected behavior

The constructor should further parse the attachments attribute and store it as a list of canvasapi.file.Files.

laitingsheng avatar Sep 01 '21 05:09 laitingsheng