Skip to content

Commit

Permalink
fix: use student_submission instead of submission_data
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed May 9, 2024
1 parent b2e915a commit 3a1cb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openassessment/xblock/openassessmentblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ def reset_submission(self, data, suffix=""): # pylint: disable=unused-argument
Returns:
dict: A dictionary indication the status with keys 'success' (bool) and 'msg' (str)
"""
if not allow_resubmission(self.config_data, self.workflow_data, self.submission_data):
if not allow_resubmission(self.config_data, self.workflow_data, self.submission_data.student_submission):
return {"success": False, "msg": self._("You can't reset your submission.")}

StudentModule = import_student_module()
Expand Down

0 comments on commit 3a1cb34

Please sign in to comment.