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
4d3750a5
Commit
4d3750a5
authored
Apr 15, 2015
by
E. Kolpakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pylint fixes
parent
26b1e8d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
cms/djangoapps/contentstore/management/commands/reindex_library.py
+3
-4
No files found.
cms/djangoapps/contentstore/management/commands/reindex_library.py
View file @
4d3750a5
""" Management command to update libraries' search index """
from
django.core.management
import
BaseCommand
,
CommandError
from
optparse
import
make_option
from
textwrap
import
dedent
...
...
@@ -61,10 +62,8 @@ class Command(BaseCommand):
store
=
modulestore
()
if
options
.
get
(
'all'
,
False
):
if
query_yes_no
(
"Reindexing all libraries might be a time consuming operation. Do you want to continue?"
,
default
=
"no"
):
if
query_yes_no
(
"Reindexing all libraries might be a time consuming operation. Do you want to continue?"
,
default
=
"no"
):
library_keys
=
[
library
.
location
.
library_key
for
library
in
store
.
get_libraries
()]
else
:
return
...
...
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