Skip to content

Commit

Permalink
fix: fix code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
Talha-Rizwan committed Jan 2, 2024
1 parent d372cf2 commit e122142
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions openedx_cmi5_xblock/openedx_cmi5_xblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def update_package_fields(self):

prefix = '{' + namespace + '}' if namespace else ''
self.set_course_detail(prefix, root)

au_elements = root.findall('.//{prefix}au'.format(prefix=prefix))
if au_elements:
self.index_page_path = au_elements[0].find('./{prefix}url'.format(prefix=prefix)).text
Expand All @@ -516,12 +516,11 @@ def update_package_fields(self):
launch_method = au.get('launchMethod', 'AnyWindow')

au_data = {
'url': self.launch_au_url(au_url), #try using index_page_url here
'url': self.launch_au_url(au_url),
'launch_method': launch_method
}
au_data_list.append(au_data)


self.au_urls = au_data_list
else:
self.index_page_path = self.find_relative_file_path('index.html')
Expand Down

0 comments on commit e122142

Please sign in to comment.