Skip to content

Commit 74c2b8c

Browse files
committed
Don't set end=None for recurring events
- This seems to make the events be zero-length, which is probably not intended. At least with duration=, recurring events work as expected with this change. - Review: someone who knows more about ics and why this was made this way should take a look.
1 parent 464e18e commit 74c2b8c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

yaml2ics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def event_from_yaml(event_yaml: dict) -> ics.Event:
5555
print('Error: must specify end date for repeating events', file=sys.stderr)
5656
sys.exit(-1)
5757

58-
event.end = d.get('end', None)
58+
# This causes zero-length events, I guess overriding whatever duration might have been specified.
59+
#event.end = d.get('end', None)
5960

6061
rrule = dateutil.rrule.rrule(
6162
freq=interval_type[interval_measure],

0 commit comments

Comments
 (0)