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
a245cae4
Commit
a245cae4
authored
Mar 19, 2013
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1691 from MITx/feature/cale/fix-metadata-inheritance
Feature/cale/fix metadata inheritance
parents
a70a23a4
8fda5af4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
common/lib/xmodule/xmodule/modulestore/mongo.py
+1
-5
lms/djangoapps/courseware/grades.py
+1
-0
No files found.
common/lib/xmodule/xmodule/modulestore/mongo.py
View file @
a245cae4
...
...
@@ -303,6 +303,7 @@ class MongoModuleStore(ModuleStoreBase):
# this is likely a leaf node, so let's record what metadata we need to inherit
metadata_to_inherit
[
child
]
=
my_metadata
if
root
is
not
None
:
_compute_inherited_metadata
(
root
)
...
...
@@ -387,11 +388,6 @@ class MongoModuleStore(ModuleStoreBase):
resource_fs
=
OSFS
(
root
)
metadata_inheritance_tree
=
None
# if we are loading a course object, there is no parent to inherit the metadata from
# so don't bother getting it
if
item
[
'location'
][
'category'
]
!=
'course'
:
metadata_inheritance_tree
=
self
.
get_cached_metadata_inheritance_tree
(
Location
(
item
[
'location'
]))
# TODO (cdodge): When the 'split module store' work has been completed, we should remove
...
...
lms/djangoapps/courseware/grades.py
View file @
a245cae4
...
...
@@ -159,6 +159,7 @@ def grade(student, request, course, model_data_cache=None, keep_raw_scores=False
# If we haven't seen a single problem in the section, we don't have to grade it at all! We can assume 0%
for
moduledescriptor
in
section
[
'xmoduledescriptors'
]:
# Create a fake key to pull out a StudentModule object from the ModelDataCache
key
=
LmsKeyValueStore
.
Key
(
Scope
.
student_state
,
student
.
id
,
...
...
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