Commit 334005ef by Awais Jibran

Grading doesn't work for XML courses

TNL-2879
parent f4e38626
......@@ -60,7 +60,12 @@ class MaxScoresCache(object):
max scores -- any time a content change occurs, we change our cache
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):
"""
......
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