mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-04-02 20:51:10 +00:00
Add API documentation link for GDrive notifications
This commit is contained in:
parent
e3c216e44e
commit
cfaf7c4287
@ -15,6 +15,12 @@ from ...models import Tournament
|
|||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
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):
|
def add_arguments(self, parser):
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--tournament', '-t', help="Tournament name to update (if not set, all tournaments will be updated)",
|
'--tournament', '-t', help="Tournament name to update (if not set, all tournaments will be updated)",
|
||||||
|
@ -1955,6 +1955,13 @@ class NotationSheetsArchiveView(VolunteerMixin, DetailView):
|
|||||||
|
|
||||||
@method_decorator(csrf_exempt, name='dispatch')
|
@method_decorator(csrf_exempt, name='dispatch')
|
||||||
class GSheetNotificationsView(View):
|
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):
|
async def post(self, request, *args, **kwargs):
|
||||||
if not await Tournament.objects.filter(pk=kwargs['pk']).aexists():
|
if not await Tournament.objects.filter(pk=kwargs['pk']).aexists():
|
||||||
return HttpResponse(status=404)
|
return HttpResponse(status=404)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user