benjolo commited on
Commit
fab86e3
1 Parent(s): ddc5bbd

Update backend/main.py

Browse files
Files changed (1) hide show
  1. backend/main.py +3 -3
backend/main.py CHANGED
@@ -56,13 +56,13 @@ sio = socketio.AsyncServer(
56
  socketio_app = socketio.ASGIApp(sio)
57
  # app.mount("/", socketio_app)
58
 
59
- # config = dotenv_values(".env")
60
 
61
  # Read connection string from environment vars
62
- uri = os.environ['MONGODB_URI']
63
 
64
  # Read connection string from .env file
65
- # uri = config['MONGODB_URI']
66
 
67
 
68
  # MongoDB Connection Lifespan Events
 
56
  socketio_app = socketio.ASGIApp(sio)
57
  # app.mount("/", socketio_app)
58
 
59
+ config = dotenv_values(".env")
60
 
61
  # Read connection string from environment vars
62
+ # uri = os.environ['MONGODB_URI']
63
 
64
  # Read connection string from .env file
65
+ uri = config['MONGODB_URI']
66
 
67
 
68
  # MongoDB Connection Lifespan Events