# HG changeset patch # User Paul Boddie # Date 1427494398 -3600 # Node ID 21b83586bbf25ed9b41f6882eb4615494709919d # Parent fe3f321df873d4cbd379fc8a31d306ce92c8db0f Minor tidying and commenting. diff -r fe3f321df873 -r 21b83586bbf2 imipweb/calendar.py --- a/imipweb/calendar.py Fri Mar 27 20:02:10 2015 +0100 +++ b/imipweb/calendar.py Fri Mar 27 23:13:18 2015 +0100 @@ -325,6 +325,8 @@ scale = get_scale(periods) # Get the time slots for the periods. + # Time slots are collections of Point objects with lists of active + # periods. slots = get_slots(scale) @@ -335,7 +337,7 @@ # Record the slots and all time points employed. groups.append(slots) - all_points.update([point_details for point_details, active in slots]) + all_points.update([point for point, active in slots]) # Partition the groups into days.