Fixes SQL
parent
001e6c5be7
commit
8bbe4b6274
|
@ -203,14 +203,14 @@ ORDER BY
|
||||||
|
|
||||||
// number of participants for time period (if given)
|
// number of participants for time period (if given)
|
||||||
'participant_number' => "
|
'participant_number' => "
|
||||||
SELECT COUNT(p.endpoint_id) as participants
|
SELECT COUNT(DISTINCT p.endpoint_id) as participants
|
||||||
FROM
|
FROM
|
||||||
participants p
|
participants p
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
participant_events pe ON p.endpoint_id = pe.participant_id
|
participant_events pe ON p.endpoint_id = pe.participant_id
|
||||||
WHERE
|
WHERE
|
||||||
(pe.time >= '%s 00:00:00' AND pe.time <= '%s 23:59:59')
|
(pe.time >= '%s 00:00:00' AND pe.time <= '%s 23:59:59')
|
||||||
AND pe.event_type = 'pair selected'",
|
AND pe.event_type = 'participant joining'",
|
||||||
|
|
||||||
|
|
||||||
// list all participants
|
// list all participants
|
||||||
|
|
Loading…
Reference in New Issue