1.1 --- a/actions/EventAggregatorSummary.py Sun Apr 03 02:31:06 2011 +0200
1.2 +++ b/actions/EventAggregatorSummary.py Sun Apr 03 18:42:04 2011 +0200
1.3 @@ -270,9 +270,7 @@
1.4
1.5 event_pages = getPagesFromResults(getAllCategoryPages(category_names, request), request)
1.6 events = getEventsFromPages(event_pages)
1.7 - calendar_period = getCalendarPeriod(calendar_start, calendar_end, resolution)
1.8 - all_shown_events = getEventsInPeriod(events, calendar_period, resolution)
1.9 -
1.10 + all_shown_events = getEventsInPeriod(events, getCalendarPeriod(calendar_start, calendar_end))
1.11 latest_timestamp = setEventTimestamps(request, all_shown_events)
1.12
1.13 # Output summary data...
1.14 @@ -374,12 +372,7 @@
1.15 if latest_timestamp is not None:
1.16 request.write('<lastBuildDate>%s</lastBuildDate>\r\n' % getHTTPTimeString(latest_timestamp))
1.17
1.18 - # Sort all_shown_events by start date, reversed:
1.19 - #
1.20 - # * event_details are dictionaries, with the "start" entry providing
1.21 - # the start date
1.22 - #
1.23 - # So we use as sorting key the "start" key from the event details.
1.24 + # Sort all_shown_events by start date, reversed.
1.25
1.26 ordered_events = getOrderedEvents(all_shown_events)
1.27 ordered_events.reverse()