Use local date for GDrive channel ids

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-04-07 09:39:17 +02:00
parent b942baea17
commit 7732a737bb
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class Command(BaseCommand):
self.style.WARNING(f"No spreadsheet found for {tournament}. Please create it first")) self.style.WARNING(f"No spreadsheet found for {tournament}. Please create it first"))
continue continue
channel_id = sha1(f"{tournament.name}-{timezone.now().date()}-{site.domain}".encode()).hexdigest() channel_id = sha1(f"{tournament.name}-{now.date()}-{site.domain}".encode()).hexdigest()
url = f"https://www.googleapis.com/drive/v3/files/{tournament.notes_sheet_id}/watch?supportsAllDrives=true" 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_path = reverse('participation:tournament_gsheet_notifications', args=[tournament.pk])
notif_url = f"https://{site.domain}{notif_path}" notif_url = f"https://{site.domain}{notif_path}"