Srish117 commited on
Commit
1c30a6b
·
verified ·
1 Parent(s): 2a27d21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -95,12 +95,14 @@ from pymongo import MongoClient
95
  import matplotlib.pyplot as plt
96
  import os
97
 
 
 
98
  # Fetch the secret key from environment variables
99
  Mongo_ip = os.getenv("Mongo_IP")
100
 
101
 
102
  # Connect to MongoDB
103
- client = MongoClient('mongodb+srv://srishnotebooks:[email protected]/?retryWrites=true&w=majority&appName=Goldrates')
104
  db = client.GoldRates
105
  collection = db['GoldRates']
106
 
 
95
  import matplotlib.pyplot as plt
96
  import os
97
 
98
+
99
+
100
  # Fetch the secret key from environment variables
101
  Mongo_ip = os.getenv("Mongo_IP")
102
 
103
 
104
  # Connect to MongoDB
105
+ client = MongoClient(Mongo_ip)
106
  db = client.GoldRates
107
  collection = db['GoldRates']
108