eventplanner_gcal: PEP coding style

This commit is contained in:
Martin Bauer
2019-01-05 13:04:20 +01:00
parent aaf1528426
commit e2c8915321
10 changed files with 243 additions and 232 deletions

View File

@@ -1,10 +1,12 @@
from django.core.management.base import NoArgsCommand
from eventplanner_gcal.google_sync import syncFromLocalToGoogle
from eventplanner_gcal.google_sync import sync_from_local_to_google
class Command(NoArgsCommand):
help = 'Synchronize Google Calendar with locally stored Events'
def handle_noargs(self, **options):
print ( "Running Sync")
created, deleted = syncFromLocalToGoogle()
print ( "Created %d and deleted %d events" % (created,deleted) )
print("Running Sync")
created, deleted = sync_from_local_to_google()
print("Created %d and deleted %d events" % (created, deleted))