Skip to content

Commit

Permalink
fix: [AXM-755] fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
NiedielnitsevIvan committed Jun 22, 2024
1 parent e170103 commit f99408f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openedx/features/offline_mode/html_manipulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ def _replace_external_links(self):
def _replace_external_link(self, match):
"""
Returns the local path of the external file.
Downloads the external file and saves it to the local directory.
"""
link = match.group()
file_extension = match.group(1)
unique_id = uuid.uuid4()
filename = f"assets/eternal/{unique_id}.{file_extension}"
filename = f"assets/external/{unique_id}.{file_extension}"
save_external_file(self.temp_dir, link, filename)

return filename
Expand Down

0 comments on commit f99408f

Please sign in to comment.