Skip to content

Commit

Permalink
global: black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Nov 30, 2023
1 parent f3aeac6 commit 9214418
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions invenio_app_rdm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ def create_fixtures():


@rdm.command("rebuild-all-indices")
@click.option(
"-o",
"--order",
default=""
)
@click.option("-o", "--order", default="")
@with_appcontext
def rebuild_all_indices(order):
"""Schedule reindexing of (all) items for search with optional selecting and ordering."""
Expand All @@ -71,12 +67,12 @@ def rebuild_all_indices(order):
for service_to_reindex in services_to_reindex:
if service_to_reindex not in service_names:
click.secho(
f"Service: '{service_to_reindex}' is not part of available services that can be reindexed", # noqa
fg="red"
f"Service: '{service_to_reindex}' is not part of available services that can be reindexed", # noqa
fg="red",
)
click.secho(
f"You can chose out of these services: {' , '.join(service_names)}",
fg="red"
fg="red",
)
return

Expand All @@ -87,4 +83,3 @@ def rebuild_all_indices(order):
click.echo(f"Reindexing {service_to_reindex}... ", nl=False)
service.rebuild_index(system_identity)
click.secho("Done.", fg="green")

0 comments on commit 9214418

Please sign in to comment.