From 8e111ce5af02ee6cf93391b91b1286112f819b7f Mon Sep 17 00:00:00 2001 From: alexjmpb Date: Wed, 28 Feb 2024 12:33:34 -0500 Subject: [PATCH] feat: adding CCX support to edx notes --- lms/djangoapps/edxnotes/decorators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/edxnotes/decorators.py b/lms/djangoapps/edxnotes/decorators.py index 1f6a1a440796..a81497f90dd6 100644 --- a/lms/djangoapps/edxnotes/decorators.py +++ b/lms/djangoapps/edxnotes/decorators.py @@ -9,6 +9,7 @@ from xblock.exceptions import NoSuchServiceError from common.djangoapps.edxmako.shortcuts import render_to_string +from common.djangoapps.student.auth import is_ccx_course def edxnotes(cls): @@ -56,7 +57,7 @@ def get_html(self, *args, **kwargs): "params": { # Use camelCase to name keys. "usageId": self.scope_ids.usage_id, - "courseId": course.id, + "courseId": course.id if not is_ccx_course(course.id) else course.id.for_branch(branch=None), "token": get_edxnotes_id_token(user), "tokenUrl": get_token_url(course.id), "endpoint": get_public_endpoint(),