Commit f2129e8c by Stephen Sanchez

Merge pull request #252 from edx/sanchez/remove_unused_query

Remove an unused query.
parents dc8cad8f 83dbe443
......@@ -225,16 +225,11 @@ def create_assessment(
scorer_item['student_id'] = scorer_id
scorer_workflow = _get_latest_workflow(scorer_item)
workflow = _get_latest_workflow(student_item)
if not scorer_workflow:
raise PeerAssessmentWorkflowError(_(
"You must make a submission before assessing another student."))
if not workflow:
raise PeerAssessmentWorkflowError(_(
"The submission you reviewed is not in the peer workflow. This "
"assessment cannot be submitted unless the associated "
"submission came from the peer workflow."))
# Close the active assessment
_close_active_assessment(scorer_workflow, submission_uuid, assessment, num_required_grades)
assessment_dict = full_assessment_dict(assessment)
......
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