File size: 364 Bytes
2d7ef5b
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import streamlit as st
from pymongo import MongoClient

@st.cache_resource
def init_conn():

        uri = st.secrets['mongo_uri']
        client = MongoClient(uri, retryWrites=True, serverSelectionTimeoutMS=100000)
        dfs_db = client["NCAAF_Database"]
        props_db = client["Props_DB"]

        return props_db, dfs_db
    
props_db, dfs_db = init_conn()