mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 06:22:22 +00:00
Share notation sheet with anyone that has the link
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
6867c2cc2d
commit
c135da1f47
@ -425,6 +425,7 @@ class Tournament(models.Model):
|
|||||||
gc = gspread.service_account_from_dict(settings.GOOGLE_SERVICE_CLIENT)
|
gc = gspread.service_account_from_dict(settings.GOOGLE_SERVICE_CLIENT)
|
||||||
spreadsheet = gc.create(f"Feuille de notes - {self.name}", folder_id=settings.NOTES_DRIVE_FOLDER_ID)
|
spreadsheet = gc.create(f"Feuille de notes - {self.name}", folder_id=settings.NOTES_DRIVE_FOLDER_ID)
|
||||||
spreadsheet.update_locale("fr_FR")
|
spreadsheet.update_locale("fr_FR")
|
||||||
|
spreadsheet.share(None, "anyone", "writer", with_link=True)
|
||||||
self.notes_sheet_id = spreadsheet.id
|
self.notes_sheet_id = spreadsheet.id
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user