# HG changeset patch # User Paul Boddie # Date 1427473730 -3600 # Node ID 3c8e6e1fe1388b41b68817f2df1562cfb75729d8 # Parent e209c910d81d89dfae34ff86f4fd7f590623c6cc Fixed the collection of slots within days. diff -r e209c910d81d -r 3c8e6e1fe138 imipweb/calendar.py --- a/imipweb/calendar.py Fri Mar 27 15:12:21 2015 +0100 +++ b/imipweb/calendar.py Fri Mar 27 17:28:50 2015 +0100 @@ -372,19 +372,19 @@ for point, active in day_slots: columns = max(columns, len(active)) + + # Qualify points in the day with an extra indicator to + # handle repeated time points due to instant events. + + day_points[(point, last == point and 1 or 0)] = active + if last: intervals.append((last, point)) - # Qualify points in the day with an extra indicator to - # handle repeated time points due to instant events. - - day_points[(point, last == point and 1 or 0)] = active - last = point if last: intervals.append((last, None)) - day_points[(point, last == point and 1 or 0)] = active if not days.has_key(day): days[day] = set()