File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 11from O365 import *
2- from printing import *
32import json
43
54
1514 e = veh ['email' ]
1615 p = veh ['password' ]
1716
18- schedule = Schedule (e ,p )
17+ schedule = Schedule (( e ,p ) )
1918 try :
2019 result = schedule .getCalendars ()
21- print 'Fetched calendars for' ,e ,'was successful:' ,result
20+ print ( 'Fetched calendars for' ,e ,'was successful:' ,result )
2221 except :
23- print 'Login failed for' ,e
22+ print ( 'Login failed for' ,e )
2423
2524 bookings = []
2625
2726 for cal in schedule .calendars :
28- print 'attempting to fetch events for' ,e
27+ print ( 'attempting to fetch events for' ,e )
2928 try :
3029 result = cal .getEvents ()
31- print 'Got events' ,result ,'got' ,len (cal .events )
30+ print ( 'Got events' ,result ,'got' ,len (cal .events ) )
3231 except :
33- print 'failed to fetch events'
34- print 'attempting for event information'
32+ print ( 'failed to fetch events' )
33+ print ( 'attempting for event information' )
3534 for event in cal .events :
36- print 'HERE!'
35+ print ( 'HERE!' )
3736 bookings .append (event .fullcalendarioJson ())
3837 json_outs [e ] = bookings
3938
You can’t perform that action at this time.
0 commit comments