Skip to content

Commit

Permalink
Merge pull request #142 from sennetconsortium/libpitt/138-uploads
Browse files Browse the repository at this point in the history
updating get_ds_path to support uploads
  • Loading branch information
maxsibilla authored Sep 18, 2023
2 parents e9928e6 + 356ac06 commit 6408df2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/entity_CRUD/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ def get_ds_path(ds_uuid: str,
# if ent_type.lower().strip() == 'upload':
# return ingest_helper.get_upload_directory_absolute_path(group_uuid=group_uuid, upload_uuid=ds_uuid)
is_phi = __get_dict_prop(dset, 'contains_human_genetic_sequences')
if ent_type is None or not (ent_type.lower().strip() == 'dataset' or ent_type.lower().strip() == 'publication'):
if ent_type is None or not (
ent_type.lower().strip() == 'dataset' or ent_type.lower().strip() == 'publication' or ent_type.lower().strip() == 'upload'):
raise ResponseException(f"Entity with uuid:{ds_uuid} is not a Dataset, Publication or Upload", 400)
if group_uuid is None:
raise ResponseException(f"Unable to find group uuid on dataset {ds_uuid}", 400)
Expand Down

0 comments on commit 6408df2

Please sign in to comment.