mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
MDL-66241 analytics: activities_due compatible with at-risk models
This commit is contained in:
parent
8e9e9a5f7e
commit
d7ef852c83
@ -68,8 +68,10 @@ class activities_due extends \core_analytics\local\indicator\binary {
|
||||
*/
|
||||
protected function calculate_sample($sampleid, $sampleorigin, $starttime = false, $endtime = false) {
|
||||
|
||||
$user = $this->retrieve('user', $sampleid);
|
||||
|
||||
$actionevents = \core_calendar_external::get_calendar_action_events_by_timesort($starttime, $endtime, 0, 1,
|
||||
true, $sampleid);
|
||||
true, $user->id);
|
||||
|
||||
if ($actionevents->events) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user