Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-val
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-val
Commits
a3c54afe
Commit
a3c54afe
authored
Sep 22, 2014
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API calls return None instead of a blank string for non-existent URLs
parent
8bae0aef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
edxval/api.py
+2
-2
setup.py
+1
-1
No files found.
edxval/api.py
View file @
a3c54afe
...
...
@@ -186,7 +186,7 @@ def get_urls_for_profiles(edx_video_id, profiles):
If the profiles or video is not found, urls will be blank.
"""
profiles_to_urls
=
{
profile
:
""
for
profile
in
profiles
}
profiles_to_urls
=
{
profile
:
None
for
profile
in
profiles
}
try
:
video_info
=
get_video_info
(
edx_video_id
)
except
ValVideoNotFoundError
:
...
...
@@ -205,7 +205,7 @@ def get_videos_for_course(course_id):
"""
Returns an iterator of videos for the given course id
"""
videos
=
Video
.
objects
.
filter
(
courses__course_id
=
course_id
)
videos
=
Video
.
objects
.
filter
(
courses__course_id
=
unicode
(
course_id
)
)
return
(
VideoSerializer
(
video
)
.
data
for
video
in
videos
)
def
get_video_info_for_course_and_profile
(
course_id
,
profile_name
):
...
...
setup.py
View file @
a3c54afe
...
...
@@ -37,7 +37,7 @@ def load_requirements(*requirements_paths):
setup
(
name
=
'edxval'
,
version
=
'0.0.
3
'
,
version
=
'0.0.
4
'
,
author
=
'edX'
,
url
=
'http://github.com/edx/edx-val'
,
description
=
'edx-val'
,
...
...
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