Skip to content

Commit

Permalink
Merge pull request #155 from sennetconsortium/maxsibilla/has-data-fix
Browse files Browse the repository at this point in the history
Fixing URL path to globus
  • Loading branch information
maxsibilla authored Oct 2, 2023
2 parents aecc234 + da88e9c commit edd31cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ def get_globus_url(data_access_level, group_name, uuid):
# public access
if data_access_level == "public":
globus_server_uuid = current_app.config['GLOBUS_PUBLIC_ENDPOINT_UUID']
access_dir = commons_file_helper.ensureTrailingSlashURL(current_app.config['ACCESS_LEVEL_PUBLIC'])
access_dir = commons_file_helper.ensureTrailingSlashURL(current_app.config['RELATIVE_GLOBUS_PUBLIC_ENDPOINT_FILEPATH'])
dir_path = dir_path + access_dir + "/"
# consortium access
elif data_access_level == 'consortium':
globus_server_uuid = current_app.config['GLOBUS_CONSORTIUM_ENDPOINT_UUID']
access_dir = commons_file_helper.ensureTrailingSlashURL(current_app.config['ACCESS_LEVEL_CONSORTIUM'])
access_dir = commons_file_helper.ensureTrailingSlashURL(current_app.config['RELATIVE_GLOBUS_CONSORTIUM_ENDPOINT_FILEPATH'])
dir_path = dir_path + access_dir + group_name + "/"
# protected access
elif data_access_level == 'protected':
globus_server_uuid = current_app.config['GLOBUS_PROTECTED_ENDPOINT_UUID']
access_dir = commons_file_helper.ensureTrailingSlashURL(current_app.config['ACCESS_LEVEL_PROTECTED'])
access_dir = commons_file_helper.ensureTrailingSlashURL(current_app.config['RELATIVE_GLOBUS_PROTECTED_ENDPOINT_FILEPATH'])
dir_path = dir_path + access_dir + group_name + "/"

if globus_server_uuid is not None:
Expand Down

0 comments on commit edd31cd

Please sign in to comment.