Skip to content

Commit

Permalink
Upload cache path url
Browse files Browse the repository at this point in the history
  • Loading branch information
andylassiter committed Mar 21, 2024
1 parent 6990f5c commit 6a1b5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def send_to_xnat(xnat_username: str, xnat_password: str, xnat_host: str,
# First upload to user cache
now = datetime.now()
upload_id = now.strftime("%Y_%m_%d_%H_%M_%S")
cache_path = f'/user/cache/resources/${upload_id}/files/${zip_file.name}'
cache_path = f'/user/cache/resources/{upload_id}/files/{zip_file.name}'
encoded_cached_path = quote(cache_path, safe='/')
url = f'{xnat_host}/data/{encoded_cached_path}'

Expand Down

0 comments on commit 6a1b5b8

Please sign in to comment.