From ae9e60df6e407227adc1aaab979c07d5297edb95 Mon Sep 17 00:00:00 2001 From: Amirali Karimi Date: Sat, 13 Nov 2021 15:42:17 +0330 Subject: [PATCH] test forking --- Python/MongoDB API/MongoDB API.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Python/MongoDB API/MongoDB API.py b/Python/MongoDB API/MongoDB API.py index 5e0e931..4b0ceb2 100644 --- a/Python/MongoDB API/MongoDB API.py +++ b/Python/MongoDB API/MongoDB API.py @@ -11,7 +11,6 @@ def __init__(self, data): # self.client = MongoClient("mongodb://localhost:27017/") # When only Mongo DB is running on Docker. self.client = MongoClient("mongodb://mymongo_1:27017/") # When both Mongo and This application is running on # Docker and we are using Docker Compose - database = data['database'] collection = data['collection'] cursor = self.client[database]