From 5cb56327a7d2c89824db50b850b3e09599b9a426 Mon Sep 17 00:00:00 2001 From: Moritz Venn Date: Thu, 16 Apr 2015 18:08:18 +0200 Subject: [PATCH] autotimer: interpret timeframe after==begin as open ended --- autotimer/src/AutoTimerComponent.py | 7 +++++-- autotimer/src/AutoTimerConfiguration.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/autotimer/src/AutoTimerComponent.py b/autotimer/src/AutoTimerComponent.py index dabcd418..b8d3fb36 100644 --- a/autotimer/src/AutoTimerComponent.py +++ b/autotimer/src/AutoTimerComponent.py @@ -483,8 +483,11 @@ class AutoTimerComponent(object): return None def checkTimeframe(self, begin): - if self.timeframe is not None: - start, end = self.timeframe + timerframe = self.timeframe + if timeframe is not None: + start, end = timeframe + if start == end: # NOTE: by convention start == end indicates open ended from begin + return begin < start if begin > start and begin < end: return False return True diff --git a/autotimer/src/AutoTimerConfiguration.py b/autotimer/src/AutoTimerConfiguration.py index 57e9b67c..4bb0cc04 100644 --- a/autotimer/src/AutoTimerConfiguration.py +++ b/autotimer/src/AutoTimerConfiguration.py @@ -22,7 +22,7 @@ is the only reliable way to make remote tools aware of our capabilities without much overhead (read: a special api just for this) we chose to change the meaning of the version attribue. """ -CURRENT_CONFIG_VERSION = "7" +CURRENT_CONFIG_VERSION = "8" def getValue(definitions, default): # Initialize Output -- 2.20.1