From 0e21cb54de04425cfedc357cb877e5be93c9aa04 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 16 Jul 2012 16:06:39 +0200 Subject: [PATCH] Minor fix related to Issue #94 --- lib/request/comparison.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/comparison.py b/lib/request/comparison.py index 630822edf..3848e42eb 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -36,7 +36,7 @@ def _adjust(condition, getRatioValue): # PAYLOAD.WHERE.NEGATIVE response is considered as True; in switch based approach negative logic is not # applied as that what is by user considered as True is that what is returned by the comparison mechanism # itself - retVal = not condition if kb.negativeLogic and condition is not None else condition + retVal = not condition if kb.negativeLogic and condition is not None and not getRatioValue else condition else: retVal = condition if not getRatioValue else (MAX_RATIO if condition else MIN_RATIO)