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
5bf60099
Commit
5bf60099
authored
9 years ago
by
Nimisha Asthagiri
Browse files
Options
Downloads
Plain Diff
Merge pull request #8211 from edx/mobile/update_video_outline
Minor update to video_outline API.
parents
f3911c44
5aa15954
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/mobile_api/video_outlines/serializers.py
+6
-7
6 additions, 7 deletions
lms/djangoapps/mobile_api/video_outlines/serializers.py
with
6 additions
and
7 deletions
lms/djangoapps/mobile_api/video_outlines/serializers.py
+
6
−
7
View file @
5bf60099
...
...
@@ -140,20 +140,19 @@ def find_urls(course_id, block, child_to_parent, request):
kwargs
=
{
'
course_id
'
:
unicode
(
course_id
)}
if
chapter_id
is
None
:
no_chapter
_url
=
reverse
(
"
courseware
"
,
kwargs
=
kwargs
,
request
=
request
)
return
no_chapter_url
,
no_chapter
_url
course
_url
=
reverse
(
"
courseware
"
,
kwargs
=
kwargs
,
request
=
request
)
return
course_url
,
course
_url
kwargs
[
'
chapter
'
]
=
chapter_id
if
section
is
None
:
no_section
_url
=
reverse
(
"
courseware_chapter
"
,
kwargs
=
kwargs
,
request
=
request
)
return
no_section_url
,
no_section
_url
chapter
_url
=
reverse
(
"
courseware_chapter
"
,
kwargs
=
kwargs
,
request
=
request
)
return
chapter_url
,
chapter
_url
kwargs
[
'
section
'
]
=
section
.
url_name
section_url
=
reverse
(
"
courseware_section
"
,
kwargs
=
kwargs
,
request
=
request
)
if
position
is
None
:
no_position_url
=
reverse
(
"
courseware_section
"
,
kwargs
=
kwargs
,
request
=
request
)
return
no_position_url
,
no_position_url
return
section_url
,
section_url
section_url
=
reverse
(
"
courseware_section
"
,
kwargs
=
kwargs
,
request
=
request
)
kwargs
[
'
position
'
]
=
position
unit_url
=
reverse
(
"
courseware_position
"
,
kwargs
=
kwargs
,
request
=
request
)
return
unit_url
,
section_url
...
...
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