mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-59630 analytics: Unit tests fixes
This commit is contained in:
parent
7004185453
commit
e08c74f5bc
@ -509,7 +509,7 @@ class manager {
|
||||
$contexts = $apcontexts + $indcalccontexts;
|
||||
if ($contexts) {
|
||||
list($sql, $params) = $DB->get_in_or_equal(array_keys($contexts));
|
||||
$DB->execute("DELETE FROM {analytics_prediction_actions} apa WHERE apa.predictionid IN
|
||||
$DB->execute("DELETE FROM {analytics_prediction_actions} WHERE predictionid IN
|
||||
(SELECT ap.id FROM {analytics_predictions} ap WHERE ap.contextid $sql)", $params);
|
||||
|
||||
$DB->delete_records_select('analytics_predictions', "contextid $sql", $params);
|
||||
|
@ -359,7 +359,7 @@ $tasks = array(
|
||||
array(
|
||||
'classname' => 'core\task\analytics_cleanup_task',
|
||||
'blocking' => 0,
|
||||
'minute' => 'R',
|
||||
'minute' => '42',
|
||||
'hour' => '*',
|
||||
'day' => '*',
|
||||
'dayofweek' => '*',
|
||||
|
Loading…
x
Reference in New Issue
Block a user