Commit 4d3750a5 by E. Kolpakov

Pylint fixes

parent 26b1e8d8
""" Management command to update libraries' search index """
from django.core.management import BaseCommand, CommandError from django.core.management import BaseCommand, CommandError
from optparse import make_option from optparse import make_option
from textwrap import dedent from textwrap import dedent
...@@ -61,10 +62,8 @@ class Command(BaseCommand): ...@@ -61,10 +62,8 @@ class Command(BaseCommand):
store = modulestore() store = modulestore()
if options.get('all', False): if options.get('all', False):
if query_yes_no( if query_yes_no("Reindexing all libraries might be a time consuming operation. Do you want to continue?",
"Reindexing all libraries might be a time consuming operation. Do you want to continue?", default="no"):
default="no"
):
library_keys = [library.location.library_key for library in store.get_libraries()] library_keys = [library.location.library_key for library in store.get_libraries()]
else: else:
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment