Commit d838686c by Awais Jibran

Merge pull request #9043 from edx/aj/tnl-2879-xml-course-error

Grading doesn't work for XML courses
parents 0f94910d 334005ef
...@@ -60,7 +60,12 @@ class MaxScoresCache(object): ...@@ -60,7 +60,12 @@ class MaxScoresCache(object):
max scores -- any time a content change occurs, we change our cache max scores -- any time a content change occurs, we change our cache
keys. keys.
""" """
return cls(u"{}.{}".format(course.id, course.subtree_edited_on.isoformat())) if course.subtree_edited_on is None:
# check for subtree_edited_on because old XML courses doesn't have this attribute
cache_key = u"{}".format(course.id)
else:
cache_key = u"{}.{}".format(course.id, course.subtree_edited_on.isoformat())
return cls(cache_key)
def fetch_from_remote(self, locations): def fetch_from_remote(self, locations):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment