# HG changeset patch # User Paul Boddie # Date 1427067566 -3600 # Node ID 21f7421c806afae71fa3195c4fd34f4917f54d14 # Parent 321f8e56f3d3f2f88597722a9a6bf827956f13d7 Fixed dictionary keys for free/busy periods provided by recurring events. Made point searching in slots slightly safer. diff -r 321f8e56f3d3 -r 21f7421c806a imiptools/period.py --- a/imiptools/period.py Sun Mar 22 23:43:18 2015 +0100 +++ b/imiptools/period.py Mon Mar 23 00:39:26 2015 +0100 @@ -348,7 +348,7 @@ new_slots = [] for point in points: - i = bisect_left(slots, (point, None)) + i = bisect_left(slots, (point,)) if i < len(slots) and slots[i][0] == point: continue @@ -424,7 +424,7 @@ if len(t) >= 7: start, end, uid, transp, recurrenceid, summary, organiser = t[:7] - key = uid, recurrenceid + key = uid, recurrenceid, start # ...and published details without specific event details.