Skip to content

Support PDF/image submissions in get_submission_files - #69

Open
cyrus- wants to merge 1 commit into
nyuoss:mainfrom
cyrus-:fix/image-pdf-submission-download
Open

Support PDF/image submissions in get_submission_files#69
cyrus- wants to merge 1 commit into
nyuoss:mainfrom
cyrus-:fix/image-pdf-submission-download

Conversation

@cyrus-

@cyrus- cyrus- commented Jun 8, 2026

Copy link
Copy Markdown

get_submission_files only read the text_files key and raised NotImplementedError("Image only submissions not yet supported") for any submission without autograder text files — i.e. ordinary PDF/image submissions, which is the common case for written assignments.

Also request pdf_attachment and image_attachments and fall back to them: Gradescope stores the student's original upload as a combined pdf_attachment (and individual image_attachments when there is no combined PDF). Initialize aws_links so a non-200 response no longer raises UnboundLocalError.

Adds credential-free unit tests covering text_files, pdf_attachment, image_attachments, and the empty case.

get_submission_files only read the `text_files` key and raised
NotImplementedError("Image only submissions not yet supported") for any
submission without autograder text files — i.e. ordinary PDF/image
submissions, which is the common case for written assignments.

Also request `pdf_attachment` and `image_attachments` and fall back to them:
Gradescope stores the student's original upload as a combined `pdf_attachment`
(and individual `image_attachments` when there is no combined PDF). Initialize
`aws_links` so a non-200 response no longer raises UnboundLocalError.

Adds credential-free unit tests covering text_files, pdf_attachment,
image_attachments, and the empty case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant