This commit is contained in:
ltcptgeneral 2019-03-20 16:53:53 -05:00
parent ac29227300
commit d35937aa2a
3 changed files with 4 additions and 1 deletions

View File

@ -257,7 +257,10 @@ def service():
warnings.simplefilter("ignore")
#Use a service account
try:
cred = credentials.Certificate('keys/firebasekey.json')
except:
cred = credentials.Certificate('keys/keytemp.json')
firebase_admin.initialize_app(cred)
db = firestore.client()