Expand description
Which host-stored files a task submission was made from.
The exercise service’s answer is an opaque blob, so the host cannot recover a submission’s files by reading it. Recording the association at submit time is what lets the host serve those files back without interpreting any plugin’s answer shape.
Structs§
- Exercise
Answer File - One file of one file-typed answer to an exercise, for the teacher bulk download.
- Submission
File - One file of a task submission, joined with the
file_uploadsrow it points at.
Functions§
- delete_
by_ task_ submission_ and_ file_ upload_ ids - Soft-deletes one submission-to-file link, leaving both the submission and the upload alone.
- exercise_
has_ answer_ files - Whether the exercise has at least one file-typed answer whose files still exist.
- get_
answer_ files_ by_ exercise_ id - Every file of every file-typed answer to the exercise, ordered by user, then submission time, then the order the client sent the files in.
- get_
by_ task_ submission_ ids - The files of the given task submissions, ordered by submission and then by the order the client sent them in. Soft-deleted files are omitted, so a reaped upload simply disappears from the listing.
- get_
positions_ by_ task_ submission_ id - The files a submission recorded, paired with their positions, in stored order.
- insert_
many - Records the files a task submission was made from, in the order the client sent them.