From fb702b347a8e6ea225907159a996b6ba6afd680d Mon Sep 17 00:00:00 2001 From: Zachary Hancock Date: Tue, 10 Oct 2023 16:55:45 -0400 Subject: [PATCH] fix: end assessment launch (#198) --- edx_exams/apps/lti/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_exams/apps/lti/views.py b/edx_exams/apps/lti/views.py index fea0e87b..7742e0a9 100644 --- a/edx_exams/apps/lti/views.py +++ b/edx_exams/apps/lti/views.py @@ -292,7 +292,7 @@ def end_assessment(request, attempt_id): exam = attempt.exam resource_link_id = exam.resource_id - end_assessment_return = get_end_assessment_return(request.user.anonymous_user_id, resource_link_id) + end_assessment_return = get_end_assessment_return(request.user.id, resource_link_id) # If end_assessment_return was provided by the Proctoring Tool, and end_assessment was True, then the Assessment # Platform MUST send an End Assessment message to the Proctoring Tool. Otherwise, the Assessment Platform can