1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-23 19:56:39 +02:00

Add options in the update_notation_sheets script

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-03-30 16:02:12 +01:00
parent 3fae6a00dd
commit b9295cc199
2 changed files with 25 additions and 2 deletions

View File

@ -616,6 +616,9 @@ class Pool(models.Model):
return super().validate_constraints()
def update_spreadsheet(self): # noqa: C901
# Create tournament sheet if it does not exist
self.tournament.create_spreadsheet()
gc = gspread.service_account_from_dict(settings.GOOGLE_SERVICE_CLIENT)
spreadsheet = gc.open_by_key(self.tournament.notes_sheet_id)
worksheets = spreadsheet.worksheets()