From 8513075e96442f413aa53d59977223d52062668f Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Sat, 4 Jan 2025 00:42:06 +0900 Subject: [PATCH] refactor: trim match condition in value mapping operator Signed-off-by: Jongmin Kim --- .../manager/data_table_manager/data_transformation_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spaceone/dashboard/manager/data_table_manager/data_transformation_manager.py b/src/spaceone/dashboard/manager/data_table_manager/data_transformation_manager.py index 3016687..b01451f 100755 --- a/src/spaceone/dashboard/manager/data_table_manager/data_transformation_manager.py +++ b/src/spaceone/dashboard/manager/data_table_manager/data_transformation_manager.py @@ -892,7 +892,7 @@ def apply_cases(self, filtered_df: pd.DataFrame) -> pd.DataFrame: self._validate_case(case) operator = case["operator"] value = case["value"] - match = case["match"] + match = case["match"].strip() if operator == "eq": filtered_df.loc[filtered_df[key] == match, name] = value