Skip to content

Commit

Permalink
Update cleanup_lab.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardusrendy committed Mar 26, 2024
1 parent ed1b67b commit 19a9951
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alab_management/scripts/cleanup_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def cleanup_lab(
print(f"Removing database {database_name}")
_GetMongoCollection.init()
_GetMongoCollection.client.drop_database(database_name) # type: ignore
else:
print(f"Removing database {database_name}")
_GetMongoCollection.init()
_GetMongoCollection.client.drop_database(database_name)

# if sim_mode != AlabOSConfig().is_sim_mode() or database_name == "Alab":
# print("Wrong name of database. Hence, not removed.")
Expand Down

0 comments on commit 19a9951

Please sign in to comment.