Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-tii authored Dec 5, 2024
2 parents 4f2b4a0 + ffa502c commit be1a287
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/modules/turnitin_quiz.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function update_mark($attemptid, $identifier, $userid, $grade, $quizgrade
foreach ($attempt->get_slots() as $slot) {
$answer = $attempt->get_question_attempt($slot)->get_response_summary();
// Check if this is the slot the mark is for by matching content.

$answerslot = $answer ? $answer.$slot : $slot;
if (sha1($answerslot) == $identifier) {
// Translate the TFS grade to a mark for the question.
Expand Down

0 comments on commit be1a287

Please sign in to comment.