Skip to content

Commit

Permalink
fix unbound local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
slatinsky committed Oct 30, 2023
1 parent 78b4a1d commit 06dc097
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions backend/preprocess/MongoDatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 = [
Expand Down

0 comments on commit 06dc097

Please sign in to comment.