Skip to content

Commit dcd9b07

Browse files
Merge pull request #3 from lambda-feedback/tr158-demonstrate-responses-per-student-per-response-area
Added description of how to display number of submitted responses to …
2 parents 8490b0f + 5c6cbe3 commit dcd9b07

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

app/docs/dev.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ This function requires a parameter to function properly:
1414

1515
```
1616

17+
When a student submits a response to a response area the number of previously submitted responses submitted to the same response area byt the same student will be sent to the evaluation function. The following format is used:
18+
```json
19+
{
20+
"submission_context": {
21+
"submissions_per_student_per_response_area": # non-negative integer that represent the number of previously processed responses
22+
}
23+
}
24+
```
25+
26+
The total number of submitted responses (i.e. the number of processed response + 1) can be displayed in the feedback by setting adding a field named `display_submission_count` to `params` and set its value to true.
27+
1728
## Outputs
1829
Outputs to the `grade` command will feature:
1930

@@ -34,17 +45,22 @@ Outputs to the `grade` command will feature:
3445
```python
3546
{
3647
"answer": "hydrophobic",
37-
"response" "hydrophobic",
48+
"response": "hydrophobic",
3849
"params": {
3950
"type": "str"
4051
}
4152
}
4253
```
4354

55+
### Displaying number of submitted responses in the feedback
56+
4457
```python
4558
{
46-
"example": {
47-
"Something": "something"
59+
"answer": 1,
60+
"response": 1,
61+
"params": {
62+
"type": "int",
63+
"display_submission_count": true
4864
}
4965
}
5066
```

0 commit comments

Comments
 (0)