Skip to content

Commit

Permalink
fix report location
Browse files Browse the repository at this point in the history
  • Loading branch information
Noordsestern committed Nov 1, 2023
1 parent d953cc4 commit d7fc52d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RobotFrameworkService/routers/robotframework.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async def start_robot_task_and_show_log(task: str, request: Request):
id = request.headers["request-id"]
variables = RequestHelper.parse_variables_from_query(request)
await run_robot_and_wait(func=_start_specific_robot_task, kwargs={'id':id, 'task':task, 'variables':variables})
return RedirectResponse(f"/logs/{task}/log.html")
return RedirectResponse(f"/logs/{id}/log.html")


@router.get('/run_and_show_report/{task}', tags=["execution"], response_class=HTMLResponse)
Expand All @@ -121,7 +121,7 @@ async def start_robot_task_and_show_report(task: str, request: Request):
id = request.headers["request-id"]
variables = RequestHelper.parse_variables_from_query(request)
await run_robot_and_wait(func=_start_specific_robot_task, kwargs={'id':id, 'task':task, 'variables':variables})
return RedirectResponse(f"/logs/{task}/report.html")
return RedirectResponse(f"/logs/{id}/report.html")


@router.get('/show_log/{executionid}', tags=["reporting"], response_class=HTMLResponse)
Expand Down

0 comments on commit d7fc52d

Please sign in to comment.