diff --git a/backend/preprocess/MongoDatabase.py b/backend/preprocess/MongoDatabase.py index e5ce6db6..b8256c1d 100644 --- a/backend/preprocess/MongoDatabase.py +++ b/backend/preprocess/MongoDatabase.py @@ -50,13 +50,8 @@ def create_indexes(self, guild_id): def clear_database(self, guild_ids): """ - Clears the database - Useful for debugging - Assets are not cleared, because they are expensive to recompute + Clears the database to start fresh """ - pass - # TODO: add this back - for guild_id in guild_ids: print(f"Wiping guild {guild_id}...") collections = self.get_guild_collections(guild_id) @@ -68,8 +63,6 @@ def clear_database(self, guild_ids): print(f" Wiping collection {collection_name}...") collection.drop() - print(f" Wiping collection {collection_name}...") - print(f"Wiping global...") # this list contains old collections too, that are not used anymore global_collections = [