diff --git a/participation/management/commands/renew_gdrive_notifications.py b/participation/management/commands/renew_gdrive_notifications.py index 8c4bf26..10d34d3 100644 --- a/participation/management/commands/renew_gdrive_notifications.py +++ b/participation/management/commands/renew_gdrive_notifications.py @@ -15,6 +15,12 @@ from ...models import Tournament class Command(BaseCommand): + """ + Création de notifications Google Drive pour récupérer les modifications sur les tableurs de notes. + + Documentation de l'API : https://developers.google.com/calendar/api/guides/push?hl=fr + """ + def add_arguments(self, parser): parser.add_argument( '--tournament', '-t', help="Tournament name to update (if not set, all tournaments will be updated)", diff --git a/participation/views.py b/participation/views.py index 236d7c2..59c5509 100644 --- a/participation/views.py +++ b/participation/views.py @@ -1955,6 +1955,13 @@ class NotationSheetsArchiveView(VolunteerMixin, DetailView): @method_decorator(csrf_exempt, name='dispatch') class GSheetNotificationsView(View): + """ + Cette vue gère les notifications envoyées par Google Drive en cas de + modifications d'un tableur de notes sur Google Sheets. + + Documentation de l'API : https://developers.google.com/calendar/api/guides/push?hl=fr + """ + async def post(self, request, *args, **kwargs): if not await Tournament.objects.filter(pk=kwargs['pk']).aexists(): return HttpResponse(status=404)