Skip to content

Commit

Permalink
Merge branch 'production'
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardusrendy committed Apr 27, 2024
2 parents c15cd63 + 7057956 commit 6aa4eb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions alab_management/scripts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ def launch_worker_cli(ctx):

@cli.command("clean", short_help="Clean up the database")
@click.option("-a", "--all-collections", is_flag=True, default=False)
def cleanup_lab_cli(all_collections: bool):
@click.option("-f", "--_force_i_know_its_dangerous", is_flag=True, default=False)
def cleanup_lab_cli(all_collections: bool, _force_i_know_its_dangerous: bool):
"""Clean up the database."""
if cleanup_lab(all_collections):
if cleanup_lab(all_collections, _force_i_know_its_dangerous):
click.echo("Done")
else:
click.echo("Stopped")
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[pytest]
testpaths = ./tests
env =
D:ALABOS_CONFIG_PATH = ./tests/fake_lab/config.toml
ALABOS_CONFIG_PATH = ./tests/fake_lab/config.toml

0 comments on commit 6aa4eb8

Please sign in to comment.