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
57a9839e
Commit
57a9839e
authored
Dec 17, 2015
by
Dmitry Viskov
Committed by
Dmitry Viskov
Mar 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LTI-9 - Bug with sending back grades for a non-leaf blocks on devstack
parent
84e88eba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
lms/djangoapps/courseware/grades.py
+4
-2
lms/djangoapps/courseware/model_data.py
+1
-1
No files found.
lms/djangoapps/courseware/grades.py
View file @
57a9839e
...
...
@@ -616,7 +616,9 @@ def _progress_summary(student, request, course, field_data_cache=None, scores_cl
for
module_descriptor
in
yield_dynamic_descriptor_descendants
(
section_module
,
student
.
id
,
module_creator
):
locations_to_children
[
module_descriptor
.
parent
]
.
append
(
module_descriptor
.
location
)
location_parent
=
module_descriptor
.
parent
.
replace
(
version
=
None
,
branch
=
None
)
location_to_save
=
module_descriptor
.
location
.
replace
(
version
=
None
,
branch
=
None
)
locations_to_children
[
location_parent
]
.
append
(
location_to_save
)
(
correct
,
total
)
=
get_score
(
student
,
module_descriptor
,
...
...
@@ -637,7 +639,7 @@ def _progress_summary(student, request, course, field_data_cache=None, scores_cl
)
scores
.
append
(
weighted_location_score
)
locations_to_weighted_scores
[
module_descriptor
.
location
]
=
weighted_location_score
locations_to_weighted_scores
[
location_to_save
]
=
weighted_location_score
scores
.
reverse
()
section_total
,
_
=
graders
.
aggregate_scores
(
...
...
lms/djangoapps/courseware/model_data.py
View file @
57a9839e
...
...
@@ -980,7 +980,7 @@ class ScoresClient(object):
"Tried to fetch location {} from ScoresClient before fetch_scores() has run."
.
format
(
location
)
)
return
self
.
_locations_to_scores
.
get
(
location
)
return
self
.
_locations_to_scores
.
get
(
location
.
replace
(
version
=
None
,
branch
=
None
)
)
@classmethod
def
from_field_data_cache
(
cls
,
fd_cache
):
...
...
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