diff --git a/_include/include_export_trainings.php b/_include/include_export_trainings.php index 09f1272..5f6ab53 100644 --- a/_include/include_export_trainings.php +++ b/_include/include_export_trainings.php @@ -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 diff --git a/_include/include_traininglist.php b/_include/include_traininglist.php index b4620dc..f8ff7f2 100644 --- a/_include/include_traininglist.php +++ b/_include/include_traininglist.php @@ -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