mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-04-27 18:12:36 +00:00
Compare commits
No commits in common. "cfaf7c428797b03c3380ef8090d162af9bb02dd1" and "73012bd61ef0e7033172da22367c09532b8b43f8" have entirely different histories.
cfaf7c4287
...
73012bd61e
@ -15,12 +15,6 @@ 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,13 +1955,6 @@ 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)
|
||||||
|
10
tfjm.cron
10
tfjm.cron
@ -11,13 +11,15 @@
|
|||||||
7 3 * * * cd /code && python manage.py fix_sympa_lists &> /dev/null
|
7 3 * * * cd /code && python manage.py fix_sympa_lists &> /dev/null
|
||||||
|
|
||||||
# Check payments from Hello Asso
|
# Check payments from Hello Asso
|
||||||
*/30 * * 03-05 * cd /code && python manage.py check_hello_asso -v 0
|
*/6 * * * * cd /code && python manage.py check_hello_asso &> /dev/null
|
||||||
|
|
||||||
# Send reminders for payments
|
# Send reminders for payments
|
||||||
30 6 * 03-05 1 cd /code && python manage.py remind_payments -v 0
|
30 6 * * 1 cd /code && python manage.py remind_payments &> /dev/null
|
||||||
|
|
||||||
|
# Check notation sheets every 15 minutes from 08:00 to 23:00 on fridays to mondays in april and may
|
||||||
|
# */15 8-23 * 4-5 5,6,7,1 cd /code && python manage.py parse_notation_sheets -v 0
|
||||||
|
|
||||||
# Update Google Drive notifications daily
|
# Update Google Drive notifications daily
|
||||||
0 0 * * * cd /code && python manage.py renew_gdrive_notifications -v 0
|
0 0 * * * cd /code && python manage.py renew_gdrive_notifications &> /dev/null
|
||||||
|
|
||||||
# Clean temporary files
|
# Clean temporary files
|
||||||
30 * * * * rm -rf /tmp/*
|
30 * * * * rm -rf /tmp/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user