Browse Source

Add message in gmail.py

Olivier Marty 8 years ago
parent
commit
616844fffd
2 changed files with 2 additions and 1 deletions
  1. 1 1
      gcal.py
  2. 1 0
      gmail.py

+ 1 - 1
gcal.py

@@ -94,7 +94,7 @@ def get_list_event_gcal():
     service = discovery.build('calendar', 'v3', http=http)
 
     now = datetime.utcnow().isoformat() + 'Z' # 'Z' indicates UTC time
-    print('Getting the upcoming 10 events...')
+    print('Getting the upcoming 10 events from Google Calendar...')
     eventsResult = service.events().list(
         calendarId='primary', timeMin=now, maxResults=10, singleEvents=True,
         orderBy='startTime').execute()

+ 1 - 0
gmail.py

@@ -57,6 +57,7 @@ def get_list_event_gmail():
     service = discovery.build('gmail', 'v1', http=http)
     results = service.users().labels().list(userId='me').execute()
     labels = results.get('labels', [])
+    print('Getting mails matching "Rendez-vous" from Gmail...')
 
 
     list_event = []