Skip to content

Commit 70d2ec7

Browse files
committed
updating v1 url for consistency
1 parent ead28af commit 70d2ec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

polaris/hub/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,9 +784,9 @@ def _upload_benchmark(
784784
benchmark_json["access"] = access
785785

786786
path_params = (
787-
"v1/benchmark" if artifact_type == ArtifactSubtype.STANDARD.value else "v2/competition"
787+
"/v1/benchmark" if artifact_type == ArtifactSubtype.STANDARD.value else "/v2/competition"
788788
)
789-
url = f"/{path_params}/{benchmark.owner}/{benchmark.name}"
789+
url = f"{path_params}/{benchmark.owner}/{benchmark.name}"
790790
response = self._base_request_to_hub(url=url, method="PUT", json=benchmark_json)
791791

792792
progress_indicator.update_success_msg(

0 commit comments

Comments
 (0)