Commit e747ce64 by muzaffaryousaf

Code refactoring.

TNL-836
parent d7bf8590
......@@ -207,9 +207,12 @@ class OpenAssessmentBlock(
def get_anonymous_user_id(self, username, course_id):
"""
Get the anonymous user id from Xblock user service.
Args:
username: user's name entered by staff to get info.
course_id: course id.
username(str): user's name entered by staff to get info.
course_id(str): course id.
Returns:
A unique id for (user, course) pair
"""
......@@ -220,6 +223,8 @@ class OpenAssessmentBlock(
See also: submissions.api for details.
Args:
anonymous_user_id(str):
Returns:
(dict): The student item associated with this XBlock instance. This
includes the student id, item id, and course id.
......
......@@ -194,11 +194,11 @@ class StaffInfoMixin(object):
@XBlock.handler
@require_course_staff("STUDENT_INFO")
def render_student_info(self, data, suffix=''): # pylint: disable=W0613
def render_student_info(self, data, suffix=''): # pylint: disable=W0613
"""
Renders all relative information for a specific student's workflow.
Given a student's ID, we can render a staff-only section of the page
Given a student's username, we can render a staff-only section of the page
with submissions and assessments specific to the student.
Must be course staff to render this view.
......
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