Skip to content

Commit

Permalink
Removed failed task id modification that could lead to the frontend c…
Browse files Browse the repository at this point in the history
…onfusion

Failed XPath and CSS locator generation tasks for one element would have the same id
  • Loading branch information
ivnglkv committed Apr 20, 2024
1 parent 7b6bd0a commit 15b18f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/api_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 15b18f6

Please sign in to comment.