# HG changeset patch # User Paul Boddie # Date 1431816001 -7200 # Node ID adb3b079f2c4b91a1e24eb613ee861165a41a152 # Parent b3436119bd30eb9555b2e3bccfdbed3f96a4fea4 Fixed single day event creation. diff -r b3436119bd30 -r adb3b079f2c4 imipweb/calendar.py --- a/imipweb/calendar.py Sun May 17 00:39:38 2015 +0200 +++ b/imipweb/calendar.py Sun May 17 00:40:01 2015 +0200 @@ -68,7 +68,7 @@ last = None for slot in slots: - start, end = slot.split("-") + start, end = (slot.split("-", 1) + [None])[:2] start = get_datetime(start, {"TZID" : tzid}) end = end and get_datetime(end, {"TZID" : tzid}) or get_start_of_next_day(start, tzid)