Skip to content

Commit

Permalink
fix: using get_course for course lookup in modulestore (openedx#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
jszewczulak authored Oct 3, 2023
1 parent 9f105e5 commit b395329
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openassessment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Initialization Information for Open Assessment Module
"""

__version__ = '5.5.2'
__version__ = '5.5.3'
Original file line number Diff line number Diff line change
Expand Up @@ -427,3 +427,6 @@ def get_item(self, block_key):
return MockCourseBlock(False)

return None

def get_course(self, block_key):
return self.get_item(block_key)
2 changes: 1 addition & 1 deletion openassessment/workflow/workflow_batch_update_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def get_workflow_update_data(peer_workflows):
if peer_workflow.course_id not in course_settings_cache:
# retrieve course block from DB
course_block_key = CourseKey.from_string(peer_workflow.course_id)
course_block = store.get_item(course_block_key)
course_block = store.get_course(course_block_key)
# add course settings to temp cache
course_settings_cache[peer_workflow.course_id] = {
'force_on_flexible_peer_openassessments': course_block.force_on_flexible_peer_openassessments}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edx-ora2",
"version": "5.5.2",
"version": "5.5.3",
"repository": "https://github.com/openedx/edx-ora2.git",
"dependencies": {
"@edx/frontend-build": "^6.1.1",
Expand Down

0 comments on commit b395329

Please sign in to comment.