Yew Chong commited on
Commit
ddfe2fc
1 Parent(s): cc3d279
Files changed (1) hide show
  1. db_firestore.py +1 -1
db_firestore.py CHANGED
@@ -12,7 +12,7 @@ try:
12
  except TypeError:
13
  import streamlit as st
14
  os.environ["FIREBASE_CREDENTIAL"] = st.secrets["FIREBASE_CREDENTIAL"]
15
- cred = credentials.Certificate(json.loads(os.environ.get("FIREBASE_CREDENTIAL"), strict=False))
16
  # firebase_admin.initialize_app(cred,{'storageBucket': 'healthhack-store.appspot.com'}) # connecting to firebase
17
  if not firebase_admin._apps:
18
  firebase_admin.initialize_app(cred, {'storageBucket': 'healthhack-store.appspot.com'})
 
12
  except TypeError:
13
  import streamlit as st
14
  os.environ["FIREBASE_CREDENTIAL"] = st.secrets["FIREBASE_CREDENTIAL"]
15
+ cred = credentials.Certificate(json.loads(str(os.environ.get("FIREBASE_CREDENTIAL")), strict=False))
16
  # firebase_admin.initialize_app(cred,{'storageBucket': 'healthhack-store.appspot.com'}) # connecting to firebase
17
  if not firebase_admin._apps:
18
  firebase_admin.initialize_app(cred, {'storageBucket': 'healthhack-store.appspot.com'})