From 46220dbd2a781a6df0b7e96d9dc38a0268caea11 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 22 Oct 2020 15:14:11 +0200 Subject: [statistics_reporting] Add exam statistics --- modules-available/statistics_reporting/inc/remotereport.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules-available/statistics_reporting/inc/remotereport.inc.php') 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(); -- cgit v1.2.3-55-g7522