Skip to content

Commit

Permalink
Merge 006045f into 265718c
Browse files Browse the repository at this point in the history
  • Loading branch information
mor3dr3ad committed Nov 6, 2019
2 parents 265718c + 006045f commit ea05ac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edx_dl/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def _get_section_name(section_soup): # FIXME: Extract from here and test

def _make_subsections(section_soup):
try:
subsections_soup = section_soup.find_all('li', class_='vertical outline-item focusable')
subsections_soup = section_soup.find_all('li', class_=['vertical outline-item focusable', 'vertical outline-item focusable scored'])
except AttributeError:
return []
# FIXME correct extraction of subsection.name (unicode)
Expand All @@ -394,7 +394,7 @@ def _make_subsections(section_soup):
return subsections

soup = BeautifulSoup(page)
sections_soup = soup.find_all('li', class_='outline-item section')
sections_soup = soup.find_all('li', class_=['outline-item section', 'outline-item section scored'])

sections = [Section(position=i,
name=_get_section_name(section_soup),
Expand Down

0 comments on commit ea05ac6

Please sign in to comment.