Skip to content

Commit

Permalink
remove verbose and hande include_logs=False
Browse files Browse the repository at this point in the history
  • Loading branch information
ychiucco committed Oct 31, 2024
1 parent 1577c46 commit 1a0ddc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fractal_client/cmd/_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ def task_collection_check(
include_logs: bool,
) -> Interface:

res = client.get(
f"{settings.BASE_URL}/task/collect/{state_id}/?verbose={include_logs}"
)
res = client.get(f"{settings.BASE_URL}/task/collect/{state_id}/")
state = check_response(res, expected_status_code=200)

# Remove key-value pairs with None value
state["data"] = {key: val for (key, val) in state["data"].items() if val}
if (include_logs is False) and ("log" in state["data"]):
state["data"]["log"] = None

return Interface(retcode=0, data=state)

Expand Down

0 comments on commit 1a0ddc2

Please sign in to comment.