mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-24 16:11:36 +00:00
Support singleEvents in calendar printevents (#1639)
This commit is contained in:
@@ -1125,6 +1125,7 @@ The following attributes are equivalent:
|
||||
(before <Time>)|
|
||||
includeeleted|
|
||||
includehidden|
|
||||
singleevents|
|
||||
(query <QueryCalendar>)|
|
||||
(updatedmin <Time>)
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user