Skip to content

Commit

Permalink
temp: cleanup old url-fetcihng code, which we don't actually use yet
Browse files Browse the repository at this point in the history
  • Loading branch information
ormsbee committed Sep 30, 2024
1 parent 7fb98c8 commit 9b2679c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions openedx_learning/apps/authoring/contents/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def file_url(self) -> str:
"""
This will sometimes be a time-limited signed URL.
"""
return content_file_url(self.path())
return get_storage().url(self.path)

def clean(self):
"""
Expand Down Expand Up @@ -406,7 +406,3 @@ class Meta:
]
verbose_name = "Content"
verbose_name_plural = "Contents"


def content_file_url(file_path):
return get_storage().url(file_path)

0 comments on commit 9b2679c

Please sign in to comment.