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
16afc89b
Commit
16afc89b
authored
Nov 08, 2014
by
stv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PEP8: E241 multiple spaces after ','
parent
500499b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
cms/djangoapps/contentstore/management/commands/prompt.py
+7
-2
cms/djangoapps/contentstore/views/transcripts_ajax.py
+8
-2
No files found.
cms/djangoapps/contentstore/management/commands/prompt.py
View file @
16afc89b
...
...
@@ -11,8 +11,13 @@ def query_yes_no(question, default="yes"):
The "answer" return value is one of "yes" or "no".
"""
valid
=
{
"yes"
:
True
,
"y"
:
True
,
"ye"
:
True
,
"no"
:
False
,
"n"
:
False
}
valid
=
{
"yes"
:
True
,
"y"
:
True
,
"ye"
:
True
,
"no"
:
False
,
"n"
:
False
,
}
if
default
is
None
:
prompt
=
" [y/n] "
elif
default
==
"yes"
:
...
...
cms/djangoapps/contentstore/views/transcripts_ajax.py
View file @
16afc89b
...
...
@@ -377,7 +377,10 @@ def choose_transcripts(request):
if
item
.
sub
!=
html5_id
:
# update sub value
item
.
sub
=
html5_id
item
.
save_with_metadata
(
request
.
user
)
response
=
{
'status'
:
'Success'
,
'subs'
:
item
.
sub
}
response
=
{
'status'
:
'Success'
,
'subs'
:
item
.
sub
,
}
return
JsonResponse
(
response
)
...
...
@@ -408,7 +411,10 @@ def replace_transcripts(request):
item
.
sub
=
youtube_id
item
.
save_with_metadata
(
request
.
user
)
response
=
{
'status'
:
'Success'
,
'subs'
:
item
.
sub
}
response
=
{
'status'
:
'Success'
,
'subs'
:
item
.
sub
,
}
return
JsonResponse
(
response
)
...
...
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