summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-04-04 10:48:37 -0300
committerChristian Franke <nobody@nowhere.ws>2016-04-04 10:48:37 -0300
commit4d7d0c7cf9ed9e4a4744e4d671211eb814df29b0 (patch)
treef9dc2e5bf4d7dd18b6e1f47817e2a9e7ffa6e016 /scripts
parentf451149e6fc6bc7894ce9140a6c486e0173b6533 (diff)
Add info whether event is recurring, include day of week
Diffstat (limited to 'scripts')
-rw-r--r--scripts/get_calendar.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/get_calendar.py b/scripts/get_calendar.py
index b0bc186..948db0e 100644
--- a/scripts/get_calendar.py
+++ b/scripts/get_calendar.py
@@ -56,11 +56,13 @@ def get_events(calendar, after, before):
for occurence in rrule.between(after, before, True):
event_info['start'] = occurence
event_info['end'] = occurence + duration
+ event_info['recurring'] = True
yield copy.deepcopy(event_info)
else:
if start >= after:
event_info['start'] = start
event_info['end'] = end
+ event_info['recurring'] = False
yield event_info
class DatetimeEncoder(json.JSONEncoder):