bugfix for example vs pi-cal-grabber
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ class CalGrab(object):
|
|||||||
start = now
|
start = now
|
||||||
all_events = []
|
all_events = []
|
||||||
for calendar in self.calendars:
|
for calendar in self.calendars:
|
||||||
print("processing calendar")
|
print(f"processing {calendar}")
|
||||||
events_result = self.service.events().list(
|
events_result = self.service.events().list(
|
||||||
calendarId=calendar,
|
calendarId=calendar,
|
||||||
timeMin=now.isoformat() + 'Z',
|
timeMin=now.isoformat() + 'Z',
|
||||||
|
|||||||
+1
-1
@@ -71,7 +71,7 @@ def process_events(events):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
cg = CalGrab("./.auth.json", [CALENDARS], [process_events])
|
cg = CalGrab("./.auth.json", CALENDARS, [process_events])
|
||||||
cg.update_at_interval(10)
|
cg.update_at_interval(10)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user