Skip to content

Commit 76bfe7c

Browse files
committed
Fix: error message for exceeding submission quota
1 parent 1775203 commit 76bfe7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/evaluation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ def evaluation_function(response: Any, answer: Any, params: Params) -> Result:
6666
try:
6767
submissions_per_student_per_response_area = params['submission_context']['submissions_per_student_per_response_area']
6868
if submissions_per_student_per_response_area >= max_submissions_per_student_per_response_area:
69-
feedback = f"You have reached the maximum number of submissions per student per response area. Please contact the administrator if you believe this is an error."
70-
correctness = "incorrect"
71-
return Result(is_correct=correctness, feedback=feedback)
69+
feedback = f"You have reached the maximum number of submissions per student for this question. Please try another one. If you believe this is an error, please contact your instructor."
70+
return Result(is_correct=False, feedback=feedback)
7271
else:
7372
feedback_prefix = f"You have submitted {submissions_per_student_per_response_area+1} times. You have {max_submissions_per_student_per_response_area - submissions_per_student_per_response_area - 1} submissions remaining.\n\n"
7473

app/evaluation_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def test_no_exemplary_solution_correct(self):
8686
exemplary_solution = "No exemplary solution provided"
8787

8888
result = evaluation_function(submission, exemplary_solution, self.params)
89+
print(result)
8990
self.assertTrue(self.correctness_test(result))
9091

9192
def test_no_exemplary_solution_incorrect(self):

0 commit comments

Comments
 (0)