From 03789464f9d43df6b9c66e9383e974725bc7d6ec Mon Sep 17 00:00:00 2001 From: IgorVolochay Date: Thu, 23 Jan 2025 15:54:13 +0300 Subject: [PATCH] Create app files --- app/main.py | 0 app/mongo_worker.py | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 app/main.py create mode 100644 app/mongo_worker.py diff --git a/app/main.py b/app/main.py new file mode 100644 index 0000000..e69de29 diff --git a/app/mongo_worker.py b/app/mongo_worker.py new file mode 100644 index 0000000..6f0f2b5 --- /dev/null +++ b/app/mongo_worker.py @@ -0,0 +1,7 @@ +import pymongo + +myclient = pymongo.MongoClient("mongodb://localhost:27017/") +db = myclient["data"] +collections = db["game_data"] +print(myclient.list_database_names()) +print(db.list_collection_names()) \ No newline at end of file