From e16f89245793604d70dba78ef78d009b3763635e Mon Sep 17 00:00:00 2001 From: Hrushikesh Sahasrabuddhe Date: Mon, 29 Jan 2024 09:29:25 -0800 Subject: [PATCH] changing the way database name is referenced in cleanup_lab --- alab_management/scripts/cleanup_lab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alab_management/scripts/cleanup_lab.py b/alab_management/scripts/cleanup_lab.py index b803ffea..1c9594dc 100644 --- a/alab_management/scripts/cleanup_lab.py +++ b/alab_management/scripts/cleanup_lab.py @@ -32,13 +32,13 @@ def cleanup_lab(all_collections: bool = False, _force_i_know_its_dangerous: bool database_name = input( f"Write the name of the database that you want to remove. " f"If you want to remove the simulation database then type in " - f"{config['general']['name']}: ") + f"{config['general']['name']}_sim: ") if sim_mode != AlabConfig().is_sim_mode() or database_name == "Alab": print("Wrong name of database. Hence, not removed.") return False elif sim_mode == AlabConfig().is_sim_mode() and database_name != "Alab": - print(f"Removing database {config['general']['name']}") + print(f"Removing database {database_name}") _GetMongoCollection.init() _GetMongoCollection.client.drop_database(database_name) # type: ignore else: