Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
706fd99c
Commit
706fd99c
authored
12 years ago
by
Victor Shnayder
Browse files
Options
Downloads
Patches
Plain Diff
Address comments on #394
parent
ecffe3e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/lib/xmodule/xmodule/x_module.py
+2
-2
2 additions, 2 deletions
common/lib/xmodule/xmodule/x_module.py
lms/djangoapps/courseware/grades.py
+3
-7
3 additions, 7 deletions
lms/djangoapps/courseware/grades.py
with
5 additions
and
9 deletions
common/lib/xmodule/xmodule/x_module.py
+
2
−
2
View file @
706fd99c
...
...
@@ -227,7 +227,7 @@ class XModule(HTMLSnippet):
def
get_display_items
(
self
):
'''
Returns a list of descendent module instances that will display
immediately inside this module
immediately inside this module
.
'''
items
=
[]
for
child
in
self
.
get_children
():
...
...
@@ -238,7 +238,7 @@ class XModule(HTMLSnippet):
def
displayable_items
(
self
):
'''
Returns list of displayable modules contained by this module. If this
module is visible, should return [self]
module is visible, should return [self]
.
'''
return
[
self
]
...
...
This diff is collapsed.
Click to expand it.
lms/djangoapps/courseware/grades.py
+
3
−
7
View file @
706fd99c
...
...
@@ -145,15 +145,11 @@ def progress_summary(student, course, grader, student_module_cache):
instance_modules for the student
"""
chapters
=
[]
for
c
in
course
.
get_children
():
# Don't include chapters that aren't displayable (e.g. due to error)
if
c
not
in
c
.
displayable_items
():
continue
# Don't include chapters that aren't displayable (e.g. due to error)
for
c
in
course
.
get_display_items
():
sections
=
[]
for
s
in
c
.
get_
children
():
for
s
in
c
.
get_
display_items
():
# Same for sections
if
s
not
in
s
.
displayable_items
():
continue
graded
=
s
.
metadata
.
get
(
'
graded
'
,
False
)
scores
=
[]
for
module
in
yield_module_descendents
(
s
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment