mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
update archan's script
This commit is contained in:
parent
b67b170c6f
commit
b1b9e2e4d3
@ -5,7 +5,7 @@ Created on Wed Mar 20 12:21:31 2019
|
||||
@author: creek
|
||||
"""
|
||||
|
||||
from google.cloud import firestore
|
||||
from firebase_admin import firestore
|
||||
from google.oauth2 import service_account
|
||||
import pprint
|
||||
from pylatex import Document, Section, Subsection, Command
|
||||
@ -47,7 +47,7 @@ def generate_team_report(team):
|
||||
doc.preamble.append(Command('date', NoEscape(r'\today')))
|
||||
doc.append(NoEscape(r'\maketitle'))
|
||||
|
||||
doc.generate_pdf(filepath="C://Users//creek//Documents//" + 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')
|
||||
|
||||
@ -57,4 +57,3 @@ teams = teams_ref.get()
|
||||
|
||||
for team in teams:
|
||||
generate_team_report(team)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user