From b4d2e0bfaea7a463245c4b94301f13eefc09734f Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:07:25 +0100 Subject: [PATCH] Different percentage values. --- classes/output/courseformat/content.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/output/courseformat/content.php b/classes/output/courseformat/content.php index ba8c6f66..e52ddd0c 100644 --- a/classes/output/courseformat/content.php +++ b/classes/output/courseformat/content.php @@ -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';