fixed tr list query

This commit is contained in:
Ricsi
2019-12-05 11:36:13 +01:00
parent 5ee367b74e
commit 06db8798d0
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ if ($user->has_authority(1)) {
substring(tr_date,1,16) 'date',
trt_name 'name',
GROUP_CONCAT(DISTINCT ua_name) 'coaches',
COUNT(pr_id) 'count'
COUNT(DISTINCT pr_id) 'count'
FROM
training
JOIN
@@ -31,7 +31,7 @@ else {
substring(tr_date,1,16) 'date',
trt_name 'name',
GROUP_CONCAT(DISTINCT ua_name) 'coaches',
COUNT(pr_id) 'count'
COUNT(DISTINCT pr_id) 'count'
FROM
training
JOIN