Skip to content

Commit

Permalink
chore: nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u committed Oct 31, 2024
1 parent a506d86 commit 4041df4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Unreleased
**********
* Add LearningAssistantMessage model

4.4.0 - 2024-10-30
******************
* Add new GET endpoint to retrieve a user's message history in a given course.

4.3.3 - 2024-10-15
******************
* Use `LEARNING_ASSISTANT_PROMPT_TEMPLATE` for prompt
Expand Down
2 changes: 1 addition & 1 deletion learning_assistant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Plugin for a learning assistant backend, intended for use within edx-platform.
"""

__version__ = '4.3.3'
__version__ = '4.4.0'

default_app_config = 'learning_assistant.apps.LearningAssistantConfig' # pylint: disable=invalid-name
3 changes: 1 addition & 2 deletions learning_assistant/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class LearningAssistantMessageHistoryView(APIView):
Accepts: [GET]
Path: /learning_assistant/v1/course_id/{course_key}/history/{message_count}
Path: /learning_assistant/v1/course_id/{course_key}/history
Parameters:
* course_key: the ID of the course
Expand Down Expand Up @@ -201,7 +201,6 @@ def get(self, request, course_run_id):
)

# If user does not have an enrollment record, or is not staff, they should not have access
# NOTE: This will likely be removed once work is done to allow audit learners to access xpert
user_role = get_user_role(request.user, courserun_key)
enrollment_object = CourseEnrollment.get_enrollment(request.user, courserun_key)
enrollment_mode = enrollment_object.mode if enrollment_object else None
Expand Down

0 comments on commit 4041df4

Please sign in to comment.