From 77b36fef73228aeed21d3c3a71c975f26519b515 Mon Sep 17 00:00:00 2001 From: yagudin Date: Mon, 31 May 2021 22:09:57 +0300 Subject: [PATCH] Fix import of st.secrets --- firebase_requests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firebase_requests.py b/firebase_requests.py index 681d73e..2619ba0 100644 --- a/firebase_requests.py +++ b/firebase_requests.py @@ -1,8 +1,10 @@ import json -from gjo_requests import request_forecasts, request_resolutions +import streamlit as st from google.cloud import firestore +from gjo_requests import request_forecasts, request_resolutions + firestore_info = json.loads(st.secrets["firestore_info"]) credentials = service_account.Credentials.from_service_account_info(firestore_info) db = firestore.Client(credentials=credentials, project="gjo-calibration")