Skip to content

Commit

Permalink
Merge pull request openedx#491 from Stanford-Online/dcadams/fix_metrics
Browse files Browse the repository at this point in the history
Fix problem count increment for metrics tab.
  • Loading branch information
David Adams authored Jul 27, 2016
2 parents fb745a3 + df80113 commit 1ee8440
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lms/djangoapps/class_dashboard/dashboard_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def construct_problem_data(prob_grade_distrib, total_student_count, c_subsection
'xValue': label,
'stackData': stack_data,
}
return problem
return problem, c_problem


def get_d3_problem_grade_distrib(course_id, enrollment):
Expand Down Expand Up @@ -350,7 +350,7 @@ def get_d3_problem_grade_distrib(course_id, enrollment):

# Student data is at the problem level
if child.location.category in PROB_TYPE_LIST:
problem = construct_problem_data(
problem, c_problem = construct_problem_data(
prob_grade_distrib,
total_student_count,
c_subsection,
Expand All @@ -361,7 +361,7 @@ def get_d3_problem_grade_distrib(course_id, enrollment):
data.append(problem)
elif child.location.category in settings.TYPES_WITH_CHILD_PROBLEMS_LIST:
for library_problem in child.get_children():
problem = construct_problem_data(
problem, c_problem = construct_problem_data(
prob_grade_distrib,
total_student_count,
c_subsection,
Expand Down

0 comments on commit 1ee8440

Please sign in to comment.