Skip to content

Commit

Permalink
Update DB commands
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Sep 10, 2018
1 parent 2886f6d commit eea11bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ckan/cli/__init__.py
Expand Up @@ -48,8 +48,8 @@ def load_config(config=None):
exit(msg)

if not os.path.exists(filename):
msg = 'Config file not found: %s' % filename
msg += '\n(Given by: %s)' % config_source
msg = u'Config file not found: %s' % filename
msg += u'\n(Given by: %s)' % config_source
exit(msg)

fileConfig(filename)
Expand Down
2 changes: 1 addition & 1 deletion ckan/cli/db.py
Expand Up @@ -44,7 +44,7 @@ def cleandb():


@db.command(u'upgrade', short_help=u'Upgrade the database')
@click.option(u'-v', u'--version', help='Migration version')
@click.option(u'-v', u'--version', help=u'Migration version')
@click.help_option(u'-h', u'--help')
def updatedb(version=None):
u'''Upgrading the database'''
Expand Down
2 changes: 1 addition & 1 deletion ckan/cli/search_index.py
Expand Up @@ -21,7 +21,7 @@ def search_index():
@click.option(u'-r', u'--refresh')
@click.option(u'-o', u'--only-missing')
def rebuild(force, only_missing):
''' Rebuild search index '''
u''' Rebuild search index '''
from ckan.lib.search import rebuild, commit
# if force:
# rebuild()

0 comments on commit eea11bc

Please sign in to comment.