autograder.api.courses.assignments.submissions.fetch.course.attempts
Get all recent submissions and grading information for this assignment.
1""" 2Get all recent submissions and grading information for this assignment. 3""" 4 5import typing 6 7import autograder.api.common 8import autograder.api.config 9import autograder.assignment 10import autograder.model.config 11 12API_ENDPOINT: str = 'courses/assignments/submissions/fetch/course/attempts' 13API_WRITE: bool = False 14API_PARAMS: typing.List[autograder.api.config.APIParam] = [ 15 autograder.api.config.PARAM_SERVER, 16 autograder.api.config.PARAM_USER_EMAIL, 17 autograder.api.config.PARAM_USER_PASS, 18 19 autograder.api.config.PARAM_COURSE, 20 autograder.api.config.PARAM_ASSIGNMENT, 21 22 autograder.api.config.PARAM_COURSE_USER_REFERENCES, 23 24 autograder.api.config.PARAM_OUT_DIR, 25] 26 27def send(config: autograder.model.config.Config, **kwargs: typing.Any) -> typing.Dict[str, typing.Dict[str, typing.Any]]: 28 """ 29 Send a request to the autograder. 30 Return a map of grading results keyed by user email. 31 """ 32 33 response = autograder.api.common.make_api_request(API_ENDPOINT, config, API_PARAMS, write = API_WRITE, **kwargs) 34 return typing.cast(typing.Dict[str, typing.Dict[str, typing.Any]], response['grading-results'])
API_ENDPOINT: str =
'courses/assignments/submissions/fetch/course/attempts'
API_WRITE: bool =
False
API_PARAMS: List[autograder.api.config.APIParam] =
[<autograder.api.config.APIParam object>, <autograder.api.config.APIParam object>, <autograder.api.config.APIParam object>, <autograder.api.config.APIParam object>, <autograder.api.config.APIParam object>, <autograder.api.config.APIParam object>, <autograder.api.config.APIParam object>]
28def send(config: autograder.model.config.Config, **kwargs: typing.Any) -> typing.Dict[str, typing.Dict[str, typing.Any]]: 29 """ 30 Send a request to the autograder. 31 Return a map of grading results keyed by user email. 32 """ 33 34 response = autograder.api.common.make_api_request(API_ENDPOINT, config, API_PARAMS, write = API_WRITE, **kwargs) 35 return typing.cast(typing.Dict[str, typing.Dict[str, typing.Any]], response['grading-results'])
Send a request to the autograder. Return a map of grading results keyed by user email.