Skip to content

Commit 43a9a10

Browse files
author
Andrew Scholer
committed
Update lti1p3 grades when manual grade is assigned
1 parent 19a7527 commit 43a9a10

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • bases/rsptx/assignment_server_api/routers

bases/rsptx/assignment_server_api/routers/grader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
)
3333
from rsptx.endpoint_validators import instructor_role_required
3434
from rsptx.logging import rslogger
35+
from rsptx.lti1p3.core import attempt_lti1p3_score_update
3536
from rsptx.response_helpers.core import make_json_response
3637
from rsptx.grading_helpers.answer_tables import CODE_TABLE_TYPES, answer_table_for
3738
from rsptx.grading_helpers.regrade import (
@@ -862,6 +863,7 @@ async def set_manual_assignment_total(
862863
grade = await set_manual_total(
863864
student.id, assignment.id, course.course_name, payload.score, True
864865
)
866+
await attempt_lti1p3_score_update(student.id, assignment.id, payload.score)
865867
rslogger.info(
866868
f"Manual total set by {user.username} assignment={assignment.id} "
867869
f"sid={payload.sid} score={payload.score}"

0 commit comments

Comments
 (0)