From b40a035ff7f9eb9bc9c3dd348765f391f1fbbd38 Mon Sep 17 00:00:00 2001 From: Vik Paruchuri Date: Tue, 12 Feb 2013 15:32:57 -0500 Subject: [PATCH] Update error message --- .../xmodule/open_ended_grading_classes/openendedchild.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py b/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py index 58939e175f..567c882189 100644 --- a/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py +++ b/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py @@ -418,8 +418,8 @@ class OpenEndedChild(object): success = False allowed_to_submit = True response = {} - error_string = ("You need to peer grade more in order to make another submission. " - "You have graded {0}, and {1} are required. You have made {2} successful peer grading submissions.") + error_string = ("You need to peer grade {0} more in order to make another submission. " + "You have graded {1}, and {2} are required. You have made {3} successful peer grading submissions.") try: response = self.peer_gs.get_data_for_location(location, student_id) count_graded = response['count_graded'] @@ -433,6 +433,6 @@ class OpenEndedChild(object): return success, allowed_to_submit, "" else: allowed_to_submit = False - error_message = error_string.format(count_graded, count_required, student_sub_count) + error_message = error_string.format(count_required-count_graded, count_graded, count_required, student_sub_count) return success, allowed_to_submit, error_message