From 9227ee971a9bf2e380d787cf8cb1f5f4a8d93ec6 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Tue, 20 Dec 2022 11:37:42 +0100 Subject: [PATCH] Added user collection --- modules/database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/database.py b/modules/database.py index ea625de..705d3c1 100644 --- a/modules/database.py +++ b/modules/database.py @@ -24,10 +24,11 @@ db = db_client.get_database(name=db_config["name"]) collections = db.list_collection_names() -for collection in ["albums", "photos", "tokens"]: +for collection in ["users", "albums", "photos", "tokens"]: if not collection in collections: db.create_collection(collection) +col_users = db.get_collection("users") col_albums = db.get_collection("albums") col_photos = db.get_collection("photos") col_tokens = db.get_collection("tokens") \ No newline at end of file