Various fixes
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
from django.core.management.base import NoArgsCommand
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from eventplanner_gcal.google_sync import checkGCalSubscription
|
||||
from eventplanner_gcal.google_sync import check_gcal_subscription
|
||||
|
||||
class Command(NoArgsCommand):
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Checks if the GCal notification channel is still active'
|
||||
def handle_noargs(self, **options):
|
||||
print ( "Checking Subscription")
|
||||
checkGCalSubscription()
|
||||
|
||||
def handle(self, *args, **options):
|
||||
self.stdout.write('Checking Subscription')
|
||||
check_gcal_subscription()
|
||||
|
||||
Reference in New Issue
Block a user