Skip to content

Commit

Permalink
fix: quality violations
Browse files Browse the repository at this point in the history
  • Loading branch information
ziafazal committed Dec 26, 2023
1 parent 9d9f31f commit 465d801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openedx_cmi5_xblock/openedx_cmi5_xblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,13 @@ def index_page_url(self):
"""
if not self.package_meta or not self.index_page_path:
return ''

if is_url(self.index_page_path):
lms_cmi5_url = self.index_page_path
else:
folder = self.extract_folder_path
lms_cmi5_url = requests.utils.unquote(self.storage.url(os.path.join(folder, self.index_page_path)))

params_joining_symbol = '&' if is_params_exist(lms_cmi5_url) else '?'
lms_cmi5_url = lms_cmi5_url + params_joining_symbol
return lms_cmi5_url + self.get_launch_url_params()
Expand Down

0 comments on commit 465d801

Please sign in to comment.