Skip to content
Snippets Groups Projects
Commit 644a1fc0 authored by Zulqarnain's avatar Zulqarnain
Browse files

Change deprecated methods signatures

parent 0ce89b70
No related merge requests found
......@@ -322,7 +322,7 @@ class DjangoStorageReportStore(ReportStore):
)
return []
files = [(filename, os.path.join(course_dir, filename)) for filename in filenames]
files.sort(key=lambda f: self.storage.modified_time(f[1]), reverse=True)
files.sort(key=lambda f: self.storage.get_modified_time(f[1]), reverse=True)
return [
(filename, self.storage.url(full_path))
for filename, full_path in files
......
......@@ -76,19 +76,19 @@ class XBlockPackageStorage(Storage):
"""
return os.path.getsize(self.path(name))
def accessed_time(self, name):
def get_accessed_time(self, name):
"""
Returns a URL to the package resource.
"""
return datetime.fromtimestamp(os.path.getatime(self.path(name)))
def created_time(self, name):
def get_created_time(self, name):
"""
Returns the created time of the package resource.
"""
return datetime.fromtimestamp(os.path.getctime(self.path(name)))
def modified_time(self, name):
def get_modified_time(self, name):
"""
Returns the modified time of the resource.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment