diff --git a/run.py b/run.py index 0ad36e2..3e9f9f7 100644 --- a/run.py +++ b/run.py @@ -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}'