Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-proxystatistics
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp-module-proxystatistics
Commits
f7109a74
Unverified
Commit
f7109a74
authored
4 years ago
by
Pavel Břoušek
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #44 from CESNET/more-robust-aggregation
change aggregation to deal with extra columns
parents
c218cd63
195a9e86
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/DatabaseCommand.php
+2
-1
2 additions, 1 deletion
lib/DatabaseCommand.php
with
2 additions
and
1 deletion
lib/DatabaseCommand.php
+
2
−
1
View file @
f7109a74
...
...
@@ -135,7 +135,8 @@ class DatabaseCommand
$msg
=
'Aggregating daily statistics per '
.
implode
(
' and '
,
array_filter
(
$ids
));
Logger
::
info
(
$msg
);
$query
=
'INSERT INTO '
.
$this
->
tables
[
self
::
TABLE_SUM
]
.
' '
.
'SELECT NULL, YEAR(`day`), MONTH(`day`), DAY(`day`), '
;
.
'(`year`,`month`,`day`,idpId,spId,logins,users) '
.
'SELECT YEAR(`day`), MONTH(`day`), DAY(`day`), '
;
foreach
(
$ids
as
$id
)
{
$query
.
=
(
$id
===
null
?
'0'
:
$id
)
.
','
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment