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
afb2b91c
Commit
afb2b91c
authored
Sep 11, 2017
by
Mushtaq Ali
Committed by
muzaffaryousaf
Oct 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change transcript status text - EDUCATOR-1324
parent
3d7e9200
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
edxval/tests/test_views.py
+2
-2
edxval/views.py
+2
-2
No files found.
edxval/tests/test_views.py
View file @
afb2b91c
...
@@ -1017,12 +1017,12 @@ class VideoStatusViewTest(APIAuthTestCase):
...
@@ -1017,12 +1017,12 @@ class VideoStatusViewTest(APIAuthTestCase):
'status_code'
:
status
.
HTTP_400_BAD_REQUEST
,
'status_code'
:
status
.
HTTP_400_BAD_REQUEST
,
},
},
{
{
'patch_data'
:
{
'edx_video_id'
:
'fake'
,
'status'
:
'transcript
ion
_ready'
},
'patch_data'
:
{
'edx_video_id'
:
'fake'
,
'status'
:
'transcript_ready'
},
'message'
:
u'Video is not found for specified edx_video_id: fake'
,
'message'
:
u'Video is not found for specified edx_video_id: fake'
,
'status_code'
:
status
.
HTTP_400_BAD_REQUEST
,
'status_code'
:
status
.
HTTP_400_BAD_REQUEST
,
},
},
{
{
'patch_data'
:
{
'edx_video_id'
:
'super-soaker'
,
'status'
:
'transcript
ion
_ready'
},
'patch_data'
:
{
'edx_video_id'
:
'super-soaker'
,
'status'
:
'transcript_ready'
},
'message'
:
None
,
'message'
:
None
,
'status_code'
:
status
.
HTTP_200_OK
,
'status_code'
:
status
.
HTTP_200_OK
,
},
},
...
...
edxval/views.py
View file @
afb2b91c
...
@@ -25,7 +25,7 @@ LOGGER = logging.getLogger(__name__) # pylint: disable=C0103
...
@@ -25,7 +25,7 @@ LOGGER = logging.getLogger(__name__) # pylint: disable=C0103
VALID_VIDEO_STATUSES
=
[
VALID_VIDEO_STATUSES
=
[
'transcription_in_progress'
,
'transcription_in_progress'
,
'transcript
ion
_ready'
,
'transcript_ready'
,
]
]
...
@@ -170,7 +170,7 @@ class VideoStatusView(APIView):
...
@@ -170,7 +170,7 @@ class VideoStatusView(APIView):
A Video View to update the status of a video.
A Video View to update the status of a video.
Note:
Note:
Currently, the valid statuses are `transcription_in_progress` and `transcript
ion
_ready` because it
Currently, the valid statuses are `transcription_in_progress` and `transcript_ready` because it
was intended to only be used for video transcriptions but if you found it helpful to your needs, you
was intended to only be used for video transcriptions but if you found it helpful to your needs, you
can add more statuses so that you can use it for updating other video statuses too.
can add more statuses so that you can use it for updating other video statuses too.
"""
"""
...
...
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