We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1606f58 commit 0e21cb5Copy full SHA for 0e21cb5
1 file changed
lib/request/comparison.py
@@ -36,7 +36,7 @@ def _adjust(condition, getRatioValue):
36
# PAYLOAD.WHERE.NEGATIVE response is considered as True; in switch based approach negative logic is not
37
# applied as that what is by user considered as True is that what is returned by the comparison mechanism
38
# itself
39
- 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
40
else:
41
retVal = condition if not getRatioValue else (MAX_RATIO if condition else MIN_RATIO)
42
0 commit comments