Removed deprecated collection
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user