Skip to content

Commit

Permalink
Different percentage values.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Sep 3, 2024
1 parent 6f8c40e commit b55672a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/output/courseformat/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,9 @@ protected function calculate_section_activity_completion($section, $course, $mod

$data = new \stdClass();
$data->percentagevalue = $this->sectioncompletionpercentage[$section->section];
if ($data->percentagevalue < 11) {
if ($data->percentagevalue < 50) {
$data->percentagecolour = 'low';
} else if ($data->percentagevalue < 90) {
} else if ($data->percentagevalue < 80) {
$data->percentagecolour = 'middle';
} else {
$data->percentagecolour = 'high';
Expand Down

0 comments on commit b55672a

Please sign in to comment.