Skip to content

Commit

Permalink
Add progress context to dwas _importData
Browse files Browse the repository at this point in the history
  • Loading branch information
willdunklin committed Nov 1, 2023
1 parent c92abbc commit f1f65ad
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 @@ -17,7 +17,7 @@ def __init__(self):
self.resourceName = 'dicomweb_assetstore'
self.route('POST', (':id', 'import'), self.importData)

def _importData(self, assetstore, params):
def _importData(self, assetstore, params, progress=None):
"""
:param assetstore: the destination assetstore.
Expand Down Expand Up @@ -51,7 +51,7 @@ def _importData(self, assetstore, params):
msg = f'Invalid filters: {e}'
raise RestException(msg)

progress = self.boolParam('progress', params, default=False)
progress = progress or self.boolParam('progress', params, default=False)

adapter = assetstore_utilities.getAssetstoreAdapter(assetstore)

Expand Down

0 comments on commit f1f65ad

Please sign in to comment.