Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d838686c
Commit
d838686c
authored
Jul 27, 2015
by
Awais Jibran
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9043 from edx/aj/tnl-2879-xml-course-error
Grading doesn't work for XML courses
parents
0f94910d
334005ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
lms/djangoapps/courseware/grades.py
+6
-1
No files found.
lms/djangoapps/courseware/grades.py
View file @
d838686c
...
@@ -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
):
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment