Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
7e7247d8
Commit
7e7247d8
authored
12 years ago
by
kimth
Browse files
Options
Downloads
Patches
Plain Diff
Don't tabulate hidden chapters and sections in the Progress view
parent
e89a7b67
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/courseware/grades.py
+10
-0
10 additions, 0 deletions
lms/djangoapps/courseware/grades.py
with
10 additions
and
0 deletions
lms/djangoapps/courseware/grades.py
+
10
−
0
View file @
7e7247d8
...
...
@@ -155,8 +155,18 @@ def progress_summary(student, course, grader, student_module_cache):
chapters
=
[]
# Don't include chapters that aren't displayable (e.g. due to error)
for
c
in
course
.
get_display_items
():
# Skip if the chapter is hidden
hidden
=
c
.
metadata
.
get
(
'
hide_from_toc
'
,
'
false
'
)
if
hidden
==
'
true
'
:
continue
sections
=
[]
for
s
in
c
.
get_display_items
():
# Skip if the section is hidden
hidden
=
s
.
metadata
.
get
(
'
hide_from_toc
'
,
'
false
'
)
if
hidden
==
'
true
'
:
continue
# Same for sections
graded
=
s
.
metadata
.
get
(
'
graded
'
,
False
)
scores
=
[]
...
...
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