Skip to content

Commit e9c9bcf

Browse files
committed
If user's rating is > 5, check only rating 5 (C1).
1 parent afcde77 commit e9c9bcf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/Console/Commands/MoodleCompetency.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ public function handle()
151151

152152
$controller_existing_competencies = (array_key_exists($user->cid, $existing_competencies)) ? $existing_competencies[$user->cid] : [];
153153
$checkRating = $user->rating;
154+
if ($checkRating > 5) {
155+
$checkRating = 5;
156+
}
154157
while ($checkRating <= 5) {
155158
if ($checkRating < 2) {
156159
$checkRating++;

0 commit comments

Comments
 (0)