From 758f714096430300e0e5a47058af1eb22cfc20e1 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 6 Apr 2024 22:18:22 +0200 Subject: [PATCH] Add supportAllDrives=true parameter to GDrive notifications Signed-off-by: Emmy D'Anello --- participation/management/commands/renew_gdrive_notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/participation/management/commands/renew_gdrive_notifications.py b/participation/management/commands/renew_gdrive_notifications.py index 46ca658..77ebebd 100644 --- a/participation/management/commands/renew_gdrive_notifications.py +++ b/participation/management/commands/renew_gdrive_notifications.py @@ -46,7 +46,7 @@ class Command(BaseCommand): continue channel_id = sha1(f"{tournament.name}-{timezone.now().date()}-{site.domain}".encode()).hexdigest() - url = f"https://www.googleapis.com/drive/v3/files/{tournament.notes_sheet_id}/watch" + url = f"https://www.googleapis.com/drive/v3/files/{tournament.notes_sheet_id}/watch?supportsAllDrives=true" notif_path = reverse('participation:tournament_gsheet_notifications', args=[tournament.pk]) notif_url = f"https://{site.domain}{notif_path}" body = {