mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Merge branch 'MDL-59063_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
ff7081150b
12 changed files with 317 additions and 4 deletions
|
@ -158,6 +158,11 @@ class course_dropout extends \core_analytics\local\target\binary {
|
|||
return get_string('coursetoolong', 'analytics');
|
||||
}
|
||||
|
||||
// Finished courses can not be used to get predictions.
|
||||
if (!$fortraining && $course->is_finished()) {
|
||||
return get_string('coursealreadyfinished');
|
||||
}
|
||||
|
||||
// Ongoing courses data can not be used to train.
|
||||
if ($fortraining && !$course->is_finished()) {
|
||||
return get_string('coursenotyetfinished');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue