CosmoAI commited on
Commit
9fdc696
·
1 Parent(s): 7d1bbce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,12 +4,13 @@ import json
4
  from Home import dashboard
5
  import pymongo
6
  from python-dotenv import dotenv
 
7
 
8
  load_dotenv()
9
 
10
  from pymongo.mongo_client import MongoClient
11
 
12
- uri = "MONGO_CONNECTION_STRING"
13
 
14
  # Create a new client and connect to the server
15
  client = MongoClient(uri)
 
4
  from Home import dashboard
5
  import pymongo
6
  from python-dotenv import dotenv
7
+ import os
8
 
9
  load_dotenv()
10
 
11
  from pymongo.mongo_client import MongoClient
12
 
13
+ uri = os.environ["MONGO_CONNECTION_STRING"]
14
 
15
  # Create a new client and connect to the server
16
  client = MongoClient(uri)