MDL-64783 analytics: Reset PAGE after analytics processes
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
c9382c1d28
commit
78e77fab2e
@@ -71,6 +71,10 @@ class train_models extends \core\task\scheduled_task {
|
||||
}
|
||||
|
||||
$result = $model->train();
|
||||
|
||||
// Reset the page as some indicators may call external functions that overwrite the page context.
|
||||
\tool_analytics\output\helper::reset_page();
|
||||
|
||||
if ($result) {
|
||||
echo $OUTPUT->heading(get_string('modelresults', 'tool_analytics', $model->get_target()->get_name()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user