macros/EventAggregator.py | raw changeset files shortlog |
1.1 --- a/macros/EventAggregator.py Sat Jul 09 22:26:01 2011 +0200 1.2 +++ b/macros/EventAggregator.py Sun Jul 10 00:45:41 2011 +0200 1.3 @@ -68,7 +68,9 @@ 1.4 1.5 self.category_name_parameters = "&".join([("category=%s" % name) for name in category_names]) 1.6 1.7 - self.duration = (last - first).count() + 1 1.8 + # Calculate the duration in terms of the highest common unit of time. 1.9 + 1.10 + self.duration = last - first 1.11 1.12 if self.calendar_name is not None: 1.13