Skip to content

Commit

Permalink
set package key only if there is no whl file
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzon committed Dec 5, 2024
1 parent 3b78318 commit 4dfe1f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fractal_client/cmd/_task_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def task_collect_pip(
batch: bool = False,
) -> Interface:
# Construct TaskCollectPip object
task_collect = dict(package=package)
task_collect = dict()
if package_version:
task_collect["package_version"] = package_version
if python_version:
Expand Down Expand Up @@ -59,6 +59,7 @@ def task_collect_pip(
files=file,
)
else:
task_collect["package"] = package
res = client.post(
f"{settings.BASE_URL}/task/collect/pip/{is_private}",
data=json.dumps(task_collect),
Expand Down

0 comments on commit 4dfe1f9

Please sign in to comment.