From 42735f2adfd915860f3d8c1b61273f7c319e2c0f Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Thu, 2 Nov 2023 13:14:37 -0500 Subject: [PATCH] Default to "None" for the limit On the master branch, if I try to import with no limit set, I get the following error: ``` Invalid value for integer parameter limit: . ``` We should remove the datatype restriction and set the default to `None`. That way, it will work properly. Signed-off-by: Patrick Avery --- sources/dicom/large_image_source_dicom/assetstore/rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/dicom/large_image_source_dicom/assetstore/rest.py b/sources/dicom/large_image_source_dicom/assetstore/rest.py index f3c94daf2..adcefbf39 100644 --- a/sources/dicom/large_image_source_dicom/assetstore/rest.py +++ b/sources/dicom/large_image_source_dicom/assetstore/rest.py @@ -79,7 +79,7 @@ def _importData(self, assetstore, params, progress): enum=('folder', 'user', 'collection'), required=True) .param('limit', 'The maximum number of results to import.', - required=False, dataType='int') + required=False, default=None) .param('filters', 'Any search parameters to filter DICOM objects.', required=False, default='{}') .param('progress', 'Whether to record progress on this operation.',