Skip to content

Commit

Permalink
Fixed minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
muqiuq committed Feb 8, 2019
1 parent d017643 commit ec76cd8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ function mod_studentquiz_helper_get_ids_by_raw_submit($rawdata) {
function mod_studentquiz_get_comments_with_creators($questionid) {
global $DB;

$sql = "SELECT co.*
$sql = "SELECT co.*
FROM {studentquiz_comment} co
WHERE co.questionid = :questionid
ORDER BY co.created ASC";
Expand Down Expand Up @@ -732,8 +732,7 @@ function mod_studentquiz_user_stats($cmid, $quantifiers, $userid, $aggregated) {
* TODO: Refactor: There must be a better way to do this!
*/
function mod_studentquiz_helper_attempt_stat_select() {
return "SELECT statspercategory.userid AS userid, statspercategory.firstname AS firstname,
statspercategory.lastname AS lastname,
return "SELECT statspercategory.userid AS userid,
-- Aggregate values over all categories in cm context.
-- Note: Max() of equals is faster than Sum() of groups.
-- See: https://dev.mysql.com/doc/refman/5.7/en/group-by-optimization.html.
Expand Down

0 comments on commit ec76cd8

Please sign in to comment.