Support singleEvents in calendar printevents (#1639)

This commit is contained in:
Ross Scroggs
2023-07-05 07:23:10 -07:00
committed by GitHub
parent 74fc224a84
commit 3046cbf3b9
2 changed files with 7 additions and 2 deletions

View File

@@ -1125,6 +1125,7 @@ The following attributes are equivalent:
(before <Time>)|
includeeleted|
includehidden|
singleevents|
(query <QueryCalendar>)|
(updatedmin <Time>)

View File

@@ -178,8 +178,8 @@ def printEvents():
calendarId, cal = buildCalendarDataGAPIObject(sys.argv[2])
if not cal:
return
q = showDeleted = showHiddenInvitations = timeMin = \
timeMax = timeZone = updatedMin = None
q = showDeleted = showHiddenInvitations = singleEvents = \
timeMin = timeMax = timeZone = updatedMin = None
toDrive = False
titles = []
csvRows = []
@@ -195,6 +195,9 @@ def printEvents():
elif myarg == 'includehidden':
showHiddenInvitations = True
i += 1
elif myarg == 'singleevents':
singleEvents = True
i += 1
elif myarg == 'after':
timeMin = utils.get_time_or_delta_from_now(sys.argv[i + 1])
i += 2
@@ -222,6 +225,7 @@ def printEvents():
q=q,
showDeleted=showDeleted,
showHiddenInvitations=showHiddenInvitations,
singleEvents=singleEvents,
timeMin=timeMin,
timeMax=timeMax,
timeZone=timeZone,