From 15b18f6afa1674b397d917d567b3452c87db7757 Mon Sep 17 00:00:00 2001 From: Ivan Golikov Date: Sat, 20 Apr 2024 20:43:06 +0200 Subject: [PATCH] Removed failed task id modification that could lead to the frontend confusion Failed XPath and CSS locator generation tasks for one element would have the same id --- utils/api_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/api_utils.py b/utils/api_utils.py index 48541362..9624d388 100644 --- a/utils/api_utils.py +++ b/utils/api_utils.py @@ -66,7 +66,7 @@ async def wait_until_task_reach_status( if task_id not in tasks_with_changed_priority: task_dict = task.model_dump() # deleting underscores in task_id if any to send to frontend - task_dict["id"] = task_dict["id"].strip("_").strip("css-selector-generation-") + task_dict["id"] = task_dict["id"].strip("_") error_message = str(task_result_obj.result) response = get_websocket_response( action=WebSocketResponseActions.STATUS_CHANGED,