Skip to content

Commit

Permalink
refactor: review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
asadali145 committed Jan 3, 2024
1 parent 0874a13 commit 8bfe54f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lms/djangoapps/grades/tasks.py
Expand Up @@ -325,12 +325,12 @@ def _update_subsection_grades(
set(),
)

# When access is restricted and course blocks are cached without the restricted blocks,
# we will update the cache from the store and get the course blocks.
# Update the cache from the store and get the course blocks if access is restricted and course blocks are
# cached without those restricted blocks.
if not subsections_to_update:
update_course_in_cache(course_usage_key.course_key)

course_structure = get_course_blocks(student, store.make_course_usage_key(course_key))
course_structure = get_course_blocks(student, course_usage_key)
subsections_to_update = course_structure.get_transformer_block_field(
scored_block_usage_key,
GradesTransformer,
Expand Down

0 comments on commit 8bfe54f

Please sign in to comment.