|
@ -735,8 +735,12 @@ function game_questions_shortanswer_question_fraction( $table, $fields, $select) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// update grade item and send all grades to gradebook |
|
|
// update grade item and send all grades to gradebook |
|
|
game_grade_item_update( $game); |
|
|
$grades = new stdClass(); |
|
|
game_update_grades( $game); |
|
|
$grades->userid = $USER->id; |
|
|
|
|
|
$grades->rawgrade = game_score_to_grade($score, $game); |
|
|
|
|
|
$grades->datesubmitted = time(); |
|
|
|
|
|
game_grade_item_update( $game, $grades); |
|
|
|
|
|
game_update_grades( $game, $grades->userid); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//Update table game_grades |
|
|
//Update table game_grades |
|
|