Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
monteri committed Jan 26, 2024
1 parent 46e5155 commit 4db5cee
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions cms/djangoapps/contentstore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,14 +636,9 @@ def get_sequence_usage_keys(course):
"""
Extracts a list of 'subsections' usage_keys
"""
course_sequence_ids = []
sections = course.get_children()
for section in sections:
subsections = section.get_children()
for subsection in subsections:
course_sequence_ids.append(str(subsection.location))

return course_sequence_ids
return [str(subsection.location)
for section in course.get_children()
for subsection in section.get_children()]


def reverse_url(handler_name, key_name=None, key_value=None, kwargs=None):
Expand Down

0 comments on commit 4db5cee

Please sign in to comment.