2011-09-04 | Paul Boddie | raw files shortlog changelog graph | Handle end datetimes that are missing or empty. | |
EventAggregatorSupport.py (file) |
1.1 --- a/EventAggregatorSupport.py Thu Sep 01 19:58:10 2011 +0200 1.2 +++ b/EventAggregatorSupport.py Sun Sep 04 15:07:50 2011 +0200 1.3 @@ -1003,7 +1003,7 @@ 1.4 1.5 # Permit omission of the end of the event by duplicating the start. 1.6 1.7 - if self.details.has_key("start") and not self.details.has_key("end"): 1.8 + if self.details.has_key("start") and not self.details.get("end"): 1.9 end = self.details["start"] 1.10 1.11 # Make any end time refer to the day instead.