mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
final fixes
This commit is contained in:
parent
b1b9e2e4d3
commit
c7612f389f
@ -5,8 +5,8 @@ Created on Wed Mar 20 12:21:31 2019
|
|||||||
@author: creek
|
@author: creek
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from firebase_admin import credentials
|
||||||
from firebase_admin import firestore
|
from firebase_admin import firestore
|
||||||
from google.oauth2 import service_account
|
|
||||||
import pprint
|
import pprint
|
||||||
from pylatex import Document, Section, Subsection, Command
|
from pylatex import Document, Section, Subsection, Command
|
||||||
from pylatex.utils import italic, NoEscape
|
from pylatex.utils import italic, NoEscape
|
||||||
@ -49,7 +49,7 @@ def generate_team_report(team):
|
|||||||
|
|
||||||
doc.generate_pdf(filepath= str(team.id), clean_tex=False)
|
doc.generate_pdf(filepath= str(team.id), clean_tex=False)
|
||||||
|
|
||||||
credentials = service_account.Credentials.from_service_account_file('keys/firebasekey.json')
|
credential = credentials.Certificate('keys/firebasekey.json')
|
||||||
|
|
||||||
db = firestore.Client(project="titanscoutandroid", credentials=credentials)
|
db = firestore.Client(project="titanscoutandroid", credentials=credentials)
|
||||||
teams_ref = db.collection(u'data').document(u'team-2022').collection(u'Central 2019')
|
teams_ref = db.collection(u'data').document(u'team-2022').collection(u'Central 2019')
|
||||||
|
Loading…
Reference in New Issue
Block a user