Skip to content

Commit c55a727

Browse files
authored
Fix the bug with mongo client creation
1 parent 8670c47 commit c55a727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/secretshare/mpce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, protocol: str = "shamirs", prime: int = 180252380737439):
4444
self.mongo_uri = os.environ.get("MONGO_URI", "mongodb://localhost:27017/")
4545
self.logger.info(f"Connection URI is: {self.mongo_uri}")
4646

47-
self.mongo_client = MongoClient(mongo_uri)
47+
self.mongo_client = MongoClient(self.mongo_uri)
4848

4949
self.mongo_db = self.mongo_client["bwwc"]
5050
self.session_collection = self.mongo_db["wage_gap"]

0 commit comments

Comments
 (0)