Files
blechreiz-website/eventplanner_gcal/management/commands/gcal_check_subscription.py
2019-01-05 13:12:31 +01:00

12 lines
336 B
Python

from django.core.management.base import NoArgsCommand
from eventplanner_gcal.google_sync import check_gcal_subscription
class Command(NoArgsCommand):
help = 'Checks if the GCal notification channel is still active'
def handle_noargs(self, **options):
print("Checking Subscription")
check_gcal_subscription()