Update app.py
Browse files
app.py
CHANGED
@@ -264,7 +264,7 @@ import pytz
|
|
264 |
from pymongo import MongoClient
|
265 |
import plotly.graph_objs as go
|
266 |
from plotly.subplots import make_subplots
|
267 |
-
|
268 |
import os
|
269 |
# Setting up IST timezone
|
270 |
ist_timezone = pytz.timezone("Asia/Kolkata")
|
@@ -275,8 +275,7 @@ MONGO_URI = Mongo_ip
|
|
275 |
# client = MongoClient(MONGO_URI, ssl=True, ssl_cert_reqs=ssl.CERT_NONE)
|
276 |
client = MongoClient(
|
277 |
MONGO_URI,
|
278 |
-
|
279 |
-
ssl_cert_reqs=ssl.CERT_NONE # Bypass SSL certificate verification
|
280 |
)
|
281 |
db = client.GoldRates
|
282 |
collection = db['GoldRates']
|
|
|
264 |
from pymongo import MongoClient
|
265 |
import plotly.graph_objs as go
|
266 |
from plotly.subplots import make_subplots
|
267 |
+
|
268 |
import os
|
269 |
# Setting up IST timezone
|
270 |
ist_timezone = pytz.timezone("Asia/Kolkata")
|
|
|
275 |
# client = MongoClient(MONGO_URI, ssl=True, ssl_cert_reqs=ssl.CERT_NONE)
|
276 |
client = MongoClient(
|
277 |
MONGO_URI,
|
278 |
+
tls=True, tlsAllowInvalidCertificates=True) # Bypass SSL certificate verification
|
|
|
279 |
)
|
280 |
db = client.GoldRates
|
281 |
collection = db['GoldRates']
|