Refactor changed are done
This commit is contained in:
@@ -24,7 +24,7 @@ db = db_client.get_database(name=db_config["name"])
|
||||
collections = db.list_collection_names()
|
||||
|
||||
for collection in ["users", "albums", "photos", "videos", "tokens", "emails"]:
|
||||
if not collection in collections:
|
||||
if collection not in collections:
|
||||
db.create_collection(collection)
|
||||
|
||||
col_users = db.get_collection("users")
|
||||
|
Reference in New Issue
Block a user