Skip to content

Commit

Permalink
Try to fix #233
Browse files Browse the repository at this point in the history
  • Loading branch information
C0D3D3V committed Nov 5, 2024
1 parent 8a65587 commit ab284ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion moodle_dl/moodle/mods/lesson.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,13 @@ async def load_attempt_page(self, attempt_page: Dict) -> List[Dict]:
page_files = page_result.get('contentfiles', [])
self.set_props_of_files(page_files, type='lesson_file')

page_content = page_result.get('pagecontent', '')
if page_content is None:
page_content= ''
page_files.append(
{
'_is_page_content': True,
'content': page_result.get('pagecontent', '').split('<script>')[0],
'content': page_content.split('<script>')[0],
}
)
return page_files
Expand Down
2 changes: 1 addition & 1 deletion moodle_dl/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.3.12'
__version__ = '2.3.13'

0 comments on commit ab284ee

Please sign in to comment.