mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-13 22:56:18 +00:00
key fix?
This commit is contained in:
parent
ac29227300
commit
d35937aa2a
Binary file not shown.
Binary file not shown.
@ -257,7 +257,10 @@ def service():
|
|||||||
|
|
||||||
warnings.simplefilter("ignore")
|
warnings.simplefilter("ignore")
|
||||||
#Use a service account
|
#Use a service account
|
||||||
cred = credentials.Certificate('keys/firebasekey.json')
|
try:
|
||||||
|
cred = credentials.Certificate('keys/firebasekey.json')
|
||||||
|
except:
|
||||||
|
cred = credentials.Certificate('keys/keytemp.json')
|
||||||
firebase_admin.initialize_app(cred)
|
firebase_admin.initialize_app(cred)
|
||||||
|
|
||||||
db = firestore.client()
|
db = firestore.client()
|
||||||
|
Loading…
Reference in New Issue
Block a user