From c6429d3eb2d4c23acdea759d8bfad1d2062d2f79 Mon Sep 17 00:00:00 2001 From: Moritz Venn Date: Wed, 2 Jul 2008 17:09:45 +0000 Subject: [PATCH] update recorddict when adding new timers to improve detection of repeats via avoidDuplicateDescription --- autotimer/src/AutoTimer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autotimer/src/AutoTimer.py b/autotimer/src/AutoTimer.py index 44a52f2..3f83cc2 100644 --- a/autotimer/src/AutoTimer.py +++ b/autotimer/src/AutoTimer.py @@ -769,6 +769,11 @@ class AutoTimer: # Mark this entry as AutoTimer (only AutoTimers will have this Attribute set) newEntry.isAutoTimer = True + if not recorddict.has_key(serviceref): + recorddict[serviceref] = [newEntry] + else: + recorddict[serviceref].append(newEntry) + # Apply afterEvent if timer.hasAfterEvent(): afterEvent = timer.getAfterEventTimespan(localtime(end)) -- 2.7.4