Skip to content

Commit

Permalink
Set the default destination type to "folder"
Browse files Browse the repository at this point in the history
This is what it was before...

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Nov 13, 2023
1 parent 5c63790 commit 6b32ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/dicom/large_image_source_dicom/assetstore/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _importData(self, assetstore, params, progress):
"""
user = self.getCurrentUser()

destinationType = params.get('destinationType', 'folder')
destinationType = params['destinationType']
if destinationType not in ('folder', 'user', 'collection'):
msg = f'Invalid destinationType: {destinationType}'
raise RestException(msg)
Expand Down Expand Up @@ -76,7 +76,7 @@ def _importData(self, assetstore, params, progress):
'in the Girder data hierarchy under which to import the files.')
.param('destinationType', 'The type of the parent object to import into.',
enum=('folder', 'user', 'collection'),
required=True)
required=False, default='folder')
.param('limit', 'The maximum number of results to import.',
required=False, default=None)
.param('filters', 'Any search parameters to filter DICOM objects.',
Expand Down

0 comments on commit 6b32ff5

Please sign in to comment.