diff --git a/participation/management/commands/renew_gdrive_notifications.py b/participation/management/commands/renew_gdrive_notifications.py index 77ebebd..8c4bf26 100644 --- a/participation/management/commands/renew_gdrive_notifications.py +++ b/participation/management/commands/renew_gdrive_notifications.py @@ -45,7 +45,7 @@ class Command(BaseCommand): self.style.WARNING(f"No spreadsheet found for {tournament}. Please create it first")) 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" notif_path = reverse('participation:tournament_gsheet_notifications', args=[tournament.pk]) notif_url = f"https://{site.domain}{notif_path}"