Commit 8d770c1c by ichuang

use isinstance for grader check in lms/djangoapps/instructor/views.py

parent de5fa56b
......@@ -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:
......
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