From 94b7ce8145e1649415d7b5bdc967a4d47a19b3f2 Mon Sep 17 00:00:00 2001 From: petruki <31597636+petruki@users.noreply.github.com> Date: Tue, 12 May 2026 20:13:43 -0700 Subject: [PATCH] fix: wrong value strategy EQUAL/NOT_EQUAL operations eval --- switcher_client/lib/snapshot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/switcher_client/lib/snapshot.py b/switcher_client/lib/snapshot.py index bc1d4b0..077dfce 100644 --- a/switcher_client/lib/snapshot.py +++ b/switcher_client/lib/snapshot.py @@ -64,9 +64,10 @@ def _process_value(operation: str, values: list, input_value: str) -> Optional[b case OperationsType.NOT_EXIST.value: return input_value not in values case OperationsType.EQUAL.value: - return input_value in values + return input_value == values[0] case OperationsType.NOT_EQUAL.value: - return input_value not in values + result = [element for element in values if element == input_value] + return len(result) == 0 # pylint: disable=too-many-return-statements def _process_numeric(operation: str, values: list, input_value: str) -> Optional[bool]: