diff --git a/utils.py b/utils.py index b81c42b..e808768 100644 --- a/utils.py +++ b/utils.py @@ -1,15 +1,13 @@ import os import sys from pymongo import MongoClient -import ssl + def get_DB(isTest=False): with open(os.path.join(sys.path[0], "config.ini"), "r") as f: content = f.readlines() client = MongoClient("mongodb+srv://anishd1910:" + - content[0]+"@cluster0.oagwk.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0", - tls=True, # Enable TLS (SSL) - tlsAllowInvalidCertificates=True) + content[0]+"@cluster0.oagwk.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0") if (isTest): return client.SETestProj