mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 14:35:29 +02:00
optimzed SQL query in hotpot_get_participants to return only user ids (not whole user record)
This commit is contained in:
parent
dbddead152
commit
1a4969431c
@ -1123,7 +1123,7 @@ function hotpot_get_precision(&$hotpot) {
|
||||
}
|
||||
|
||||
function hotpot_get_participants($hotpotid) {
|
||||
//Must return an array of user records (all data) who are participants
|
||||
//Must return an array of user ids who are participants
|
||||
//for a given instance of hotpot. Must include every user involved
|
||||
//in the instance, independient of his role (student, teacher, admin...)
|
||||
//See other modules as example.
|
||||
@ -1131,7 +1131,7 @@ function hotpot_get_participants($hotpotid) {
|
||||
|
||||
return get_records_sql("
|
||||
SELECT DISTINCT
|
||||
u.*
|
||||
u.id, u.id
|
||||
FROM
|
||||
{$CFG->prefix}user u,
|
||||
{$CFG->prefix}hotpot_attempts a
|
||||
|
Loading…
x
Reference in New Issue
Block a user