Skip to content

Commit 0c8a526

Browse files
committed
fix: report all columns from annual stats as JSON
The previous report was only showing the first column, incorrectly. For now, just report all columns as JSON, and in future we'll add more formatting as we work on analytics. Test-bot: skip
1 parent 0732abd commit 0c8a526

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

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)