Commit 203b1176 by Vik Paruchuri

Don't check for ETA, or check peer grading data in self assessment

parent 3667fe8b
...@@ -649,7 +649,6 @@ class OpenEndedModule(openendedchild.OpenEndedChild): ...@@ -649,7 +649,6 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
# add new history element with answer and empty score and hint. # add new history element with answer and empty score and hint.
success, data = self.append_image_to_student_answer(data) success, data = self.append_image_to_student_answer(data)
error_message = ""
if success: if success:
success, allowed_to_submit, error_message = self.check_if_student_can_submit() success, allowed_to_submit, error_message = self.check_if_student_can_submit()
if allowed_to_submit: if allowed_to_submit:
...@@ -698,7 +697,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild): ...@@ -698,7 +697,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
score = self.latest_score() score = self.latest_score()
correct = 'correct' if self.is_submission_correct(score) else 'incorrect' correct = 'correct' if self.is_submission_correct(score) else 'incorrect'
if self.child_state == self.ASSESSING: if self.child_state == self.ASSESSING:
eta_string = self.get_eta() eta_string = ""
else: else:
post_assessment = "" post_assessment = ""
correct = "" correct = ""
......
...@@ -184,14 +184,9 @@ class SelfAssessmentModule(openendedchild.OpenEndedChild): ...@@ -184,14 +184,9 @@ class SelfAssessmentModule(openendedchild.OpenEndedChild):
# add new history element with answer and empty score and hint. # add new history element with answer and empty score and hint.
success, data = self.append_image_to_student_answer(data) success, data = self.append_image_to_student_answer(data)
if success: if success:
success, allowed_to_submit, error_message = self.check_if_student_can_submit() data['student_answer'] = SelfAssessmentModule.sanitize_html(data['student_answer'])
if allowed_to_submit: self.new_history_entry(data['student_answer'])
data['student_answer'] = SelfAssessmentModule.sanitize_html(data['student_answer']) self.change_state(self.ASSESSING)
self.new_history_entry(data['student_answer'])
self.change_state(self.ASSESSING)
else:
# Error message already defined
success = False
else: else:
# This is a student_facing_error # This is a student_facing_error
error_message = "There was a problem saving the image in your submission. Please try a different image, or try pasting a link to an image into the answer box." error_message = "There was a problem saving the image in your submission. Please try a different image, or try pasting a link to an image into the answer box."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment