Commit ab2353e2 authored by Samuel GAIST's avatar Samuel GAIST

[common] Fix algorithm download

The download was using the current user to build the URL
which is not correct since the user may not be the owner.

Fixes #77
parent 101ea79c
Pipeline #45328 passed with stage
in 9 minutes and 22 seconds
......@@ -865,13 +865,8 @@ def pull(webapi, prefix, asset_type, names, fields, force, indentation):
if asset_type == "algorithm" and storage.language == "cxx":
try:
file_data = webapi.download(
"/api/v1/%s/%s/%s/%s/file/"
% (
TYPE_PLURAL[asset_type],
webapi.user,
storage.name,
storage.version,
)
"/api/v1/%s/%s/file/"
% (TYPE_PLURAL[asset_type], storage.fullname,)
)
data["code"] = file_data
except Exception as e:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment