Skip to content

Commit cea9041

Browse files
committed
fix: fix the bug with mongo_uri
1 parent 80a4882 commit cea9041

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)