11 lines
401 B
Python
11 lines
401 B
Python
from django.core.management.base import NoArgsCommand
|
|
|
|
from eventplanner_gcal.signals import syncGCalEvents
|
|
|
|
class Command(NoArgsCommand):
|
|
help = 'Synchronize Google Calendar with locally stored Events'
|
|
def handle_noargs(self, **options):
|
|
print ( "Running Sync")
|
|
created, deleted = syncGCalEvents()
|
|
print ( "Created %d and deleted %d events" % (created,deleted) )
|