Removed deprecated collection

This commit is contained in:
2023-06-28 10:52:00 +02:00
parent 3d87f035e7
commit 11dbf3239d
2 changed files with 4 additions and 5 deletions

View File

@@ -25,11 +25,10 @@ db = db_client.get_database(name=db_config["name"])
collections = db.list_collection_names()
for collection in ["sent", "users", "banned", "submitted"]:
if not collection in collections:
for collection in ["sent", "users", "submitted"]:
if collection not in collections:
db.create_collection(collection)
col_sent = db.get_collection("sent")
col_users = db.get_collection("users")
col_banned = db.get_collection("banned")
col_submitted = db.get_collection("submitted")