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
ba76bbe1
Commit
ba76bbe1
authored
Sep 24, 2014
by
David Ormsbee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5365 from edx/ormsbee/mobile_deleted_announcement_fix
Hide deleted course updates from mobile API.
parents
84f0d8e3
9f8cf1c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
lms/djangoapps/mobile_api/course_info/views.py
+6
-1
No files found.
lms/djangoapps/mobile_api/course_info/views.py
View file @
ba76bbe1
...
...
@@ -25,7 +25,12 @@ class CourseUpdatesList(generics.ListAPIView):
course_id
=
CourseKey
.
from_string
(
kwargs
[
'course_id'
])
course
=
modulestore
()
.
get_course
(
course_id
)
course_updates_module
=
get_course_info_section_module
(
request
,
course
,
'updates'
)
return
Response
(
reversed
(
course_updates_module
.
items
))
updates_to_show
=
[
update
for
update
in
reversed
(
course_updates_module
.
items
)
if
update
.
get
(
"status"
)
!=
"deleted"
]
return
Response
(
updates_to_show
)
class
CourseHandoutsList
(
generics
.
ListAPIView
):
...
...
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