Skip to content

Commit 465a575

Browse files
authored
Merge pull request #315 from keymanapp/fix/stats
fix: report all columns from annual stats as JSON
2 parents 0732abd + 0c8a526 commit 465a575

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

script/statistics/annual.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,4 @@
2929

3030
$stats = new \Keyman\Site\com\keyman\api\AnnualStatistics();
3131
$data = $stats->execute($mssql, $startDate, $endDate);
32-
$rows = [];
33-
foreach($data as $row) {
34-
$rows[$row[0]] = ["Value" => $row[2], "Comment" => $row[1]];
35-
}
36-
37-
json_print($rows);
32+
json_print($data);

0 commit comments

Comments
 (0)