Skip to content

Commit

Permalink
Different percentage values.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Oct 3, 2024
1 parent c7d923e commit b4d2e0b
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 @@ -454,9 +454,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 b4d2e0b

Please sign in to comment.