2014-04-19 20:36:01 +02:00
|
|
|
from django.core.management.base import NoArgsCommand
|
|
|
|
|
2019-01-05 13:04:20 +01:00
|
|
|
from eventplanner_gcal.google_sync import check_gcal_subscription
|
|
|
|
|
2014-04-19 20:36:01 +02:00
|
|
|
|
|
|
|
class Command(NoArgsCommand):
|
|
|
|
help = 'Checks if the GCal notification channel is still active'
|
2019-01-05 13:04:20 +01:00
|
|
|
|
2014-04-19 20:36:01 +02:00
|
|
|
def handle_noargs(self, **options):
|
2019-01-05 13:04:20 +01:00
|
|
|
print("Checking Subscription")
|
|
|
|
check_gcal_subscription()
|