File size: 824 Bytes
e2f925b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import os
import streamlit as st
try:
    credentials = {
        "user": st.secrets['MONGO_USER'],
        "password": st.secrets['MONGO_PASSWORD'],
        "dbname": str(st.secrets['MONGO_DB']),
        "host": st.secrets['MONGO_HOST'],
        "args": "test?retryWrites=true&w=majority",
        "port": int(st.secrets['MONGO_PORT'])
    }
except:
    credentials = {
        "user": 'quantUser',
        "password": 'Quant.L4rr4?',
        "dbname": 'QuantRepo',
        "host": 'quant-main.5pkxp.mongodb.net',
        "args": "test?retryWrites=true&w=majority",
        "port": 27017
    }

# credentials = {
#     "user": 'quantUser',
#     "password": 'Quant.L4rr4?',
#     "dbname": 'QuantRepo',
#     "host": 'quant-main.5pkxp.mongodb.net',
#     "args": "test?retryWrites=true&w=majority",
#     "port": 27017
# }