1.1 --- a/imipweb/calendar.py Sun Oct 25 23:29:52 2015 +0100
1.2 +++ b/imipweb/calendar.py Sun Oct 25 23:41:59 2015 +0100
1.3 @@ -28,7 +28,7 @@
1.4 from imiptools.period import add_day_start_points, add_empty_days, add_slots, \
1.5 get_overlapping, \
1.6 get_scale, get_slots, get_spans, partition_by_day, \
1.7 - Period, Point
1.8 + remove_end_slot, Period, Point
1.9 from imipweb.resource import FormUtilities, ResourceClient
1.10
1.11 class CalendarPage(ResourceClient, FormUtilities):
1.12 @@ -487,6 +487,11 @@
1.13
1.14 add_day_start_points(slots, tzid)
1.15
1.16 + # Remove the slot at the end of a view.
1.17 +
1.18 + if view_period:
1.19 + remove_end_slot(slots, view_period)
1.20 +
1.21 # Record the slots and all time points employed.
1.22
1.23 groups.append(slots)