diff options
author | Simon Rettberg | 2020-10-22 15:14:11 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-10-22 15:14:11 +0200 |
commit | 46220dbd2a781a6df0b7e96d9dc38a0268caea11 (patch) | |
tree | 924544971ceb7fd99121bbb218734de7239e93d9 /modules-available/statistics_reporting/inc/remotereport.inc.php | |
parent | [locationinfo] Relative paths for assets in rewrite mode (diff) | |
download | slx-admin-46220dbd2a781a6df0b7e96d9dc38a0268caea11.tar.gz slx-admin-46220dbd2a781a6df0b7e96d9dc38a0268caea11.tar.xz slx-admin-46220dbd2a781a6df0b7e96d9dc38a0268caea11.zip |
[statistics_reporting] Add exam statistics
Diffstat (limited to 'modules-available/statistics_reporting/inc/remotereport.inc.php')
-rw-r--r-- | modules-available/statistics_reporting/inc/remotereport.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/statistics_reporting/inc/remotereport.inc.php b/modules-available/statistics_reporting/inc/remotereport.inc.php index f8f54a86..2de49d04 100644 --- a/modules-available/statistics_reporting/inc/remotereport.inc.php +++ b/modules-available/statistics_reporting/inc/remotereport.inc.php @@ -68,7 +68,7 @@ class RemoteReport * @param int[] $days list of days to generate aggregated stats for * @return array wrapped up statistics, ready for reporting */ - public static function generateReport($to, $days = false) { + public static function generateReport(int $to, $days = false) { if ($days === false) { $days = [7, 30, 90]; } @@ -89,6 +89,7 @@ class RemoteReport $data['tsTo'] = $to; $data['dozmod'] = Queries::getDozmodStats($from, $to); $data['machines'] = Queries::getAggregatedMachineStats($from); + $data['exams'] = Queries::getExamStats($from, $to); $result['days' . $day] = $data; } $result['server'] = self::getLocalHardware(); |