From e7cb90fbbf4b1db9ec2f691cee76e71813567ba2 Mon Sep 17 00:00:00 2001 From: Moritz Venn Date: Wed, 9 Sep 2009 23:23:44 +0000 Subject: [PATCH] fix regression --- autotimer/src/AutoTimerComponent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autotimer/src/AutoTimerComponent.py b/autotimer/src/AutoTimerComponent.py index e0940c04..8b84e7b7 100644 --- a/autotimer/src/AutoTimerComponent.py +++ b/autotimer/src/AutoTimerComponent.py @@ -80,11 +80,11 @@ class AutoTimerComponent(object): for action, timespan in afterevent: # If the second argument is a tuple we assume the entry is already parsed if isinstance(timespan, tuple): - self._afterevent.insert(x, (action, timespan)) + self._afterevent.append((action, timespan)) elif timespan is None: - self._afterevent.insert(x, (action, (None,))) + self._afterevent.append((action, (None,))) else: - self._afterevent.insert(x, (action, self.calculateDayspan(*timespan))) + self._afterevent.append((action, self.calculateDayspan(*timespan))) afterevent = property(lambda self: self._afterevent, setAfterEvent) -- 2.20.1