Refactor changed are done

This commit is contained in:
2023-06-23 12:17:01 +02:00
parent b003712358
commit 2a7870620c
9 changed files with 36 additions and 39 deletions

View File

@@ -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")