From f6849f4979cfa839ced85c045aade18b1c03cfa1 Mon Sep 17 00:00:00 2001 From: anjanaw Date: Fri, 2 Feb 2024 18:42:24 +0000 Subject: [PATCH] strip questions to match --- business/bt/nodes/action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/bt/nodes/action.py b/business/bt/nodes/action.py index e8c237c..a1a355f 100644 --- a/business/bt/nodes/action.py +++ b/business/bt/nodes/action.py @@ -633,7 +633,7 @@ async def tick(self): questions = [self.params["Question"].lower()] if ";" not in self.params["Question"].lower() else [f.lower() for f in self.params["Question"].lower().split(";")] else: questions = [self.params["Question"]["value"].lower()] if ";" not in self.params["Question"]["value"].lower() else [f.lower() for f in self.params["Question"]["value"].lower().split(";")] - match = selected_q.strip().lower() in questions + match = selected_q.strip().lower() in [q.strip().lower() for q in questions] content = { "content": selected_q, "id": selected_q_id,