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,9 +1,11 @@
from django.core.management.base import NoArgsCommand
from eventplanner_gcal.google_sync import deleteAllGCalEvents
from eventplanner_gcal.google_sync import delete_all_gcal_events
class Command(NoArgsCommand):
help = 'Delete all events in the google calendar created by this app'
def handle_noargs(self, **options):
print ("Deleting all GCal Events.")
nrOfDeletedEvents = deleteAllGCalEvents()
print ("Deleted %d events. To Restore them from local database run gcal_sync" % (nrOfDeletedEvents, ) )
print("Deleting all GCal Events.")
nr_of_deleted_events = delete_all_gcal_events()
print("Deleted %d events. To Restore them from local database run gcal_sync" % (nr_of_deleted_events,))