@@ 359-361 (lines=3) @@ | ||
356 | $grade_total = Sensei_Grading::get_lessons_users_grades_sum( $item->ID ); |
|
357 | ||
358 | $lesson_average_grade = 0; |
|
359 | if( $grade_total > 0 && $grade_count > 0 ){ |
|
360 | $lesson_average_grade = abs( round( doubleval( $grade_total / $grade_count ), 2 ) ); |
|
361 | } |
|
362 | ||
363 | } |
|
364 | // Output lesson data |
|
@@ 421-423 (lines=3) @@ | ||
418 | $grade_total = Sensei_Grading::get_user_graded_lessons_sum( $item->ID ); |
|
419 | ||
420 | $user_average_grade = 0; |
|
421 | if( $grade_total > 0 && $grade_count > 0 ){ |
|
422 | $user_average_grade = abs( round( doubleval( $grade_total / $grade_count ), 2 ) ); |
|
423 | } |
|
424 | ||
425 | // Output the users data |
|
426 | if ( $this->csv_output ) { |