Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa committed Dec 5, 2024
1 parent 8a54d3b commit cf8d403
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fractal_client/cmd/_task_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,14 @@ def task_collect_pip(
is_private = "?private=true" if private else ""
endpoint_url = f"{settings.BASE_URL}/task/collect/pip/{is_private}"
if package.endswith(".whl"):
with open(package, "rb") as wheel_buffer:
with open(package, "rb") as f:
file = {
"file": (
Path(package).name,
wheel_buffer.read(),
f.read(),
"application/zip",
)
}

res = client.post(
endpoint_url,
data=task_collect,
Expand Down

0 comments on commit cf8d403

Please sign in to comment.