Skip to content

Commit 8490b0f

Browse files
Merge pull request #2 from lambda-feedback/tr158-demonstrate-responses-per-student-per-response-area
Tr158 demonstrate responses per student per response area
2 parents e8d7407 + 4145265 commit 8490b0f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def evaluation_function(response, answer, params) -> dict:
5454

5555
if "submission_context" in params.keys():
5656
if "submissions_per_student_per_response_area" in params["submission_context"].keys():
57-
nbr_of_responses = params["submission_context"]["submissions_per_student_per_response_area"]
57+
nbr_of_responses = params["submission_context"]["submissions_per_student_per_response_area"]+1
5858
if params.get("display_submission_count", False):
5959
result.update({"feedback": f"You have submitted {nbr_of_responses} responses."})
6060

app/evaluation_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def test_display_submission_count(self):
130130
response = 1
131131
answer = 1
132132
result = evaluation_function(response, answer, params)
133-
self.assertTrue("You have submitted 3 responses." in result["feedback"])
133+
self.assertTrue("You have submitted 4 responses." in result["feedback"])
134134

135135
if __name__ == "__main__":
136136
unittest.main()

0 commit comments

Comments
 (0)