Skip to content

Commit

Permalink
Merge pull request #99 from Chloe070196/ils_usage_graphs
Browse files Browse the repository at this point in the history
fix: group ils record usage by year and month
  • Loading branch information
Chloe070196 authored Jul 30, 2024
2 parents a35d2a8 + 85a68d4 commit a18215a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/web/services/ILS/UsageGraphs.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function launch() {
$userILSUsage->selectAdd('year');
$userILSUsage->selectAdd('month');
$userILSUsage->orderBy('year, month');

if ($stat == 'userLogins') {
$dataSeries['User Logins'] = [
'borderColor' => 'rgba(255, 99, 132, 1)',
Expand Down Expand Up @@ -166,6 +167,7 @@ function launch() {
$stat == 'totalHolds'
) {
$recordILSUsage = new ILSRecordUsage();
$recordILSUsage->groupBy('year, month');
if (!empty($instanceName)) {
$recordILSUsage->instance = $instanceName;
}
Expand Down

0 comments on commit a18215a

Please sign in to comment.