Skip to content

Commit

Permalink
Fix get_list_of_chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed Apr 28, 2024
1 parent df55eaf commit 8495dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zds/tutorialv2/models/versioned.py
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ def get_list_of_chapters(self) -> list[Container]:
continuous_list.append(child) # it contains Extract, this is a chapter, so paginated
else: # Container is a part
for sub_child in child.children:
continuous_list.append(sub_child) # even if empty `sub_child.childreen`, it's chapter
continuous_list.append(sub_child) # even if `sub_child.children` is empty, it's a chapter
return continuous_list

def get_json(self):
Expand Down

0 comments on commit 8495dda

Please sign in to comment.