mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-3030 quiz overdue handling: only finished attempts in stats.
This commit is contained in:
parent
c547514a9e
commit
2cdd2df92d
@ -1076,8 +1076,8 @@ function quiz_statistics_attempts_sql($quizid, $currentgroup, $groupstudents,
|
||||
|
||||
$fromqa = '{quiz_attempts} quiza ';
|
||||
|
||||
$whereqa = 'quiza.quiz = :quizid AND quiza.preview = 0 AND quiza.timefinish <> 0';
|
||||
$qaparams = array('quizid' => $quizid);
|
||||
$whereqa = 'quiza.quiz = :quizid AND quiza.preview = 0 AND quiza.state = :quizstatefinished';
|
||||
$qaparams = array('quizid' => $quizid, 'quizstatefinished' => quiz_attempt::FINISHED);
|
||||
|
||||
if (!empty($currentgroup) && $groupstudents) {
|
||||
list($grpsql, $grpparams) = $DB->get_in_or_equal(array_keys($groupstudents),
|
||||
|
Loading…
x
Reference in New Issue
Block a user