use isinstance for grader check in lms/djangoapps/instructor/views.py
This commit is contained in:
@@ -41,6 +41,7 @@ from xmodule.modulestore import Location
|
||||
from xmodule.modulestore.django import modulestore
|
||||
from xmodule.modulestore.exceptions import InvalidLocationError, ItemNotFoundError, NoPathToItem
|
||||
from xmodule.modulestore.search import path_to_location
|
||||
import xmodule.graders as graders
|
||||
import track.views
|
||||
|
||||
from .offline_gradecalc import student_grades, offline_grades_available
|
||||
@@ -1136,7 +1137,7 @@ def dump_grading_context(course):
|
||||
|
||||
msg += '%s\n' % course.grader.__class__
|
||||
graders = {}
|
||||
if 'WeightedSubsectionsGrader' in str(course.grader.__class__):
|
||||
if isinstance(course.grader, graders.WeightedSubsectionsGrader)
|
||||
msg += '\n'
|
||||
msg += "Graded sections:\n"
|
||||
for subgrader, category, weight in course.grader.sections:
|
||||
|
||||
Reference in New Issue
Block a user