Commit 91fb2874 by muzaffaryousaf

Minor code refactoring after PR review.

TNL-836
parent e3fe2cbf
...@@ -224,7 +224,7 @@ class OpenAssessmentBlock( ...@@ -224,7 +224,7 @@ class OpenAssessmentBlock(
See also: submissions.api for details. See also: submissions.api for details.
Args: Args:
anonymous_user_id(str): anonymous_user_id(str): A unique anonymous_user_id for (user, course) pair.
Returns: Returns:
(dict): The student item associated with this XBlock instance. This (dict): The student item associated with this XBlock instance. This
includes the student id, item id, and course id. includes the student id, item id, and course id.
......
...@@ -234,6 +234,9 @@ class StaffInfoMixin(object): ...@@ -234,6 +234,9 @@ class StaffInfoMixin(object):
submission_uuid = None submission_uuid = None
submission = None submission = None
assessment_steps = self.assessment_steps assessment_steps = self.assessment_steps
anonymous_user_id = None
submissions = None
student_item = None
if student_username: if student_username:
anonymous_user_id = self.get_anonymous_user_id(student_username, self.course_id) anonymous_user_id = self.get_anonymous_user_id(student_username, self.course_id)
......
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