MDL-80340 behat: make query to fetch h5p attempts less strict

This commit is contained in:
Simey Lameze 2024-01-09 08:25:07 +08:00
parent 9587029a46
commit 95da5a44a8

View file

@ -584,7 +584,7 @@ function h5pactivity_print_recent_activity($course, bool $viewfullnames, int $ti
JOIN {course_modules} cm ON cm.instance = h5p.id
JOIN {modules} md ON md.id = cm.module
JOIN {user} u ON u.id = h5pa.userid
WHERE h5pa.timemodified > ?
WHERE h5pa.timemodified >= ?
AND h5p.course = ?
AND md.name = ?
ORDER BY h5pa.timemodified ASC";
@ -669,7 +669,7 @@ function h5pactivity_get_recent_mod_activity(array &$activities, int &$index, in
JOIN {course_modules} cm ON cm.instance = h5p.id
JOIN {modules} md ON md.id = cm.module
JOIN {user} u ON u.id = h5pa.userid $groupjoin
WHERE h5pa.timemodified > :timestart
WHERE h5pa.timemodified >= :timestart
AND h5p.id = :cminstance $userselect $groupselect
AND cm.id = :cmid
ORDER BY h5pa.timemodified ASC";